@repzo/widget-react-native 1.1.0 → 1.2.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/CHANGELOG.md +64 -0
- package/README.md +92 -3
- package/lib/commonjs/api/client.js +35 -0
- package/lib/commonjs/api/client.js.map +1 -1
- package/lib/commonjs/i18n.js +14 -0
- package/lib/commonjs/i18n.js.map +1 -1
- package/lib/commonjs/index.js +2 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/locales.js +13 -0
- package/lib/commonjs/locales.js.map +1 -1
- package/lib/commonjs/push/push-notifications.js +65 -8
- package/lib/commonjs/push/push-notifications.js.map +1 -1
- package/lib/commonjs/state/widget-store.js +451 -7
- package/lib/commonjs/state/widget-store.js.map +1 -1
- package/lib/commonjs/types.js +15 -0
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/ui/WidgetProvider.js +64 -2
- package/lib/commonjs/ui/WidgetProvider.js.map +1 -1
- package/lib/commonjs/ui/components/Post.js +1241 -0
- package/lib/commonjs/ui/components/Post.js.map +1 -0
- package/lib/commonjs/ui/utils/html.js +1 -0
- package/lib/commonjs/ui/utils/html.js.map +1 -1
- package/lib/commonjs/ui/utils/post-html.js +276 -0
- package/lib/commonjs/ui/utils/post-html.js.map +1 -0
- package/lib/commonjs/ui/utils/safe-url.js +16 -0
- package/lib/commonjs/ui/utils/safe-url.js.map +1 -1
- package/lib/module/api/client.js +35 -0
- package/lib/module/api/client.js.map +1 -1
- package/lib/module/i18n.js +14 -0
- package/lib/module/i18n.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/locales.js +13 -0
- package/lib/module/locales.js.map +1 -1
- package/lib/module/push/push-notifications.js +65 -8
- package/lib/module/push/push-notifications.js.map +1 -1
- package/lib/module/state/widget-store.js +450 -6
- package/lib/module/state/widget-store.js.map +1 -1
- package/lib/module/types.js +15 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/ui/WidgetProvider.js +65 -3
- package/lib/module/ui/WidgetProvider.js.map +1 -1
- package/lib/module/ui/components/Post.js +1236 -0
- package/lib/module/ui/components/Post.js.map +1 -0
- package/lib/module/ui/utils/html.js +1 -1
- package/lib/module/ui/utils/html.js.map +1 -1
- package/lib/module/ui/utils/post-html.js +271 -0
- package/lib/module/ui/utils/post-html.js.map +1 -0
- package/lib/module/ui/utils/safe-url.js +15 -0
- package/lib/module/ui/utils/safe-url.js.map +1 -1
- package/lib/typescript/commonjs/api/client.d.ts +21 -1
- package/lib/typescript/commonjs/api/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/i18n.d.ts +13 -0
- package/lib/typescript/commonjs/i18n.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +14 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/locales.d.ts.map +1 -1
- package/lib/typescript/commonjs/push/push-notifications.d.ts +26 -2
- package/lib/typescript/commonjs/push/push-notifications.d.ts.map +1 -1
- package/lib/typescript/commonjs/state/widget-store.d.ts +84 -1
- package/lib/typescript/commonjs/state/widget-store.d.ts.map +1 -1
- package/lib/typescript/commonjs/types.d.ts +77 -0
- package/lib/typescript/commonjs/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/WidgetProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/Post.d.ts +69 -0
- package/lib/typescript/commonjs/ui/components/Post.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/html.d.ts +1 -0
- package/lib/typescript/commonjs/ui/utils/html.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/post-html.d.ts +54 -0
- package/lib/typescript/commonjs/ui/utils/post-html.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/utils/safe-url.d.ts +6 -0
- package/lib/typescript/commonjs/ui/utils/safe-url.d.ts.map +1 -1
- package/lib/typescript/module/api/client.d.ts +21 -1
- package/lib/typescript/module/api/client.d.ts.map +1 -1
- package/lib/typescript/module/i18n.d.ts +13 -0
- package/lib/typescript/module/i18n.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +14 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/locales.d.ts.map +1 -1
- package/lib/typescript/module/push/push-notifications.d.ts +26 -2
- package/lib/typescript/module/push/push-notifications.d.ts.map +1 -1
- package/lib/typescript/module/state/widget-store.d.ts +84 -1
- package/lib/typescript/module/state/widget-store.d.ts.map +1 -1
- package/lib/typescript/module/types.d.ts +77 -0
- package/lib/typescript/module/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/WidgetProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/Post.d.ts +69 -0
- package/lib/typescript/module/ui/components/Post.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/html.d.ts +1 -0
- package/lib/typescript/module/ui/utils/html.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/post-html.d.ts +54 -0
- package/lib/typescript/module/ui/utils/post-html.d.ts.map +1 -0
- package/lib/typescript/module/ui/utils/safe-url.d.ts +6 -0
- package/lib/typescript/module/ui/utils/safe-url.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/client.ts +32 -0
- package/src/i18n.ts +14 -0
- package/src/index.tsx +17 -0
- package/src/locales.ts +13 -0
- package/src/push/push-notifications.ts +74 -8
- package/src/state/widget-store.ts +429 -6
- package/src/types.ts +77 -0
- package/src/ui/WidgetProvider.tsx +78 -2
- package/src/ui/components/Post.tsx +943 -0
- package/src/ui/utils/html.ts +1 -1
- package/src/ui/utils/post-html.ts +256 -0
- package/src/ui/utils/safe-url.ts +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,70 @@ All notable changes to `@repzo/widget-react-native`, newest first.
|
|
|
12
12
|
|
|
13
13
|
## Unreleased
|
|
14
14
|
|
|
15
|
+
## 1.2.1 — 2026-10-18
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- **Mobile Push campaigns.** Pushes sent from Workstation's Send → Mobile Push
|
|
20
|
+
are handled when tapped: the app opens, the push's link (if it has one)
|
|
21
|
+
goes through `onOpenUrl` like links in messages, and the tap counts as an
|
|
22
|
+
open in the campaign's stats. Pushes with an image show it on Android; on
|
|
23
|
+
iOS the image needs a Notification Service Extension in your app (see the
|
|
24
|
+
README). Needs a Workstation update.
|
|
25
|
+
- **`RepzoWidget.handlePushNotification(message)`.** If your app reads
|
|
26
|
+
tapped notifications itself (Firebase's `getInitialNotification`, or
|
|
27
|
+
notifications you re-post while the app is open), hand them over: Firebase
|
|
28
|
+
gives the notification that launched the app to whoever asks first, so
|
|
29
|
+
without this the widget's pushes open nothing. Returns true for widget
|
|
30
|
+
pushes; they open now, or once the session is ready.
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- **Notification taps after `logout()`.** Tapping a widget notification while
|
|
35
|
+
signed out no longer opens it straight away without a session. It now waits
|
|
36
|
+
for the next `boot()`, the same as taps handed over with
|
|
37
|
+
`handlePushNotification()`, so a Mobile Push open still gets counted.
|
|
38
|
+
|
|
39
|
+
### Older versions
|
|
40
|
+
|
|
41
|
+
- Apps on 1.2.0 or older still get Mobile Push notifications, but tapping one
|
|
42
|
+
only opens the app: its link isn't followed and the open isn't counted.
|
|
43
|
+
|
|
44
|
+
## 1.2.0 — 2026-10-08
|
|
45
|
+
|
|
46
|
+
### Added
|
|
47
|
+
|
|
48
|
+
- **Send posts in the app.** Posts made under Send → Post with "Show on:
|
|
49
|
+
Mobile" appear over the app as a badge, a snippet card or the full post. A
|
|
50
|
+
small post opens as a sheet and a large one as a full screen, with
|
|
51
|
+
paragraphs, lists, code, a button and social links, plus a reply box or
|
|
52
|
+
reactions. Replies go to the inbox, where the team
|
|
53
|
+
answers; the whole conversation (their replies and the team's answers,
|
|
54
|
+
live) shows under the post, with "Continue in Messenger". Answers read
|
|
55
|
+
under the open post count as read; one with only attachments stays unread
|
|
56
|
+
for the Messenger. A reaction answers the post: the emoji pops, it says thanks, and
|
|
57
|
+
the post goes. ⌄ (or swiping its top down, tapping outside a sheet, or
|
|
58
|
+
Android's back button) minimizes it to its pill or card, where it stays on
|
|
59
|
+
later launches too; × closes it for good. A post push ("Add push notification on mobile") opens the post
|
|
60
|
+
when tapped. Links and buttons in a post go through `onOpenUrl` like links in
|
|
61
|
+
messages, so a post button can open a screen in your app. Turn posts off
|
|
62
|
+
with `boot({ posts: false })`.
|
|
63
|
+
|
|
64
|
+
### Upgrading
|
|
65
|
+
|
|
66
|
+
- **Posts show over the app by default.** They need `<RepzoWidgetProvider>`
|
|
67
|
+
(already required for in-app notifications). Nothing changes until a post
|
|
68
|
+
is set live for Mobile in Workstation. To keep them off:
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
await RepzoWidget.boot({ channelAccountId: '<widget id>', posts: false });
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Older versions
|
|
75
|
+
|
|
76
|
+
- Apps on 1.1.0 or older don't show posts, and Workstation doesn't send them
|
|
77
|
+
post pushes. Nothing changes for them.
|
|
78
|
+
|
|
15
79
|
## 1.1.0 — 2026-10-05
|
|
16
80
|
|
|
17
81
|
### Added
|
package/README.md
CHANGED
|
@@ -26,7 +26,8 @@ in your Repzo Inbox and agent replies arrive live.
|
|
|
26
26
|
- Agent UI blocks: product cards, slot pickers, lead forms, quotes, receipts
|
|
27
27
|
- **Photo and file attachments** (optional — with `expo-image-picker` / `expo-document-picker`, or your own picker)
|
|
28
28
|
- **In-app notification cards** for new replies while the messenger is closed
|
|
29
|
-
- **
|
|
29
|
+
- **Posts** from Workstation over the app, with replies or emoji reactions
|
|
30
|
+
- **Push notifications via FCM** (optional — needs `@react-native-firebase/messaging` in the host app), including Mobile Push campaigns from Workstation with images
|
|
30
31
|
- Conversation ratings after a teammate closes the chat
|
|
31
32
|
- Theme cached on-device, so relaunches paint your colors instantly
|
|
32
33
|
- Events for building your own badge, in-app banner, and tray cleanup
|
|
@@ -275,7 +276,7 @@ there simply expires or gets replaced on the next init.
|
|
|
275
276
|
|
|
276
277
|
## Links in messages
|
|
277
278
|
|
|
278
|
-
Agent and AI replies, campaign CTAs and attachments are remote content, so
|
|
279
|
+
Agent and AI replies, campaign CTAs, posts and attachments are remote content, so
|
|
279
280
|
the SDK only opens `https:`, `http:`, `mailto:` and `tel:` links. Everything
|
|
280
281
|
else (your own `myapp://` deep links, `intent:`, `sms:`, `file:`,
|
|
281
282
|
`javascript:`…) is blocked. To route links yourself, pass `onOpenUrl` — it
|
|
@@ -417,6 +418,52 @@ await RepzoWidget.boot({ channelAccountId: '…', inAppNotifications: false });
|
|
|
417
418
|
While the app is in the background the system push notification (below) does
|
|
418
419
|
this job instead.
|
|
419
420
|
|
|
421
|
+
## Posts
|
|
422
|
+
|
|
423
|
+
*1.2.0+.* Posts made in Workstation under **Send → Post** with **Show on: Mobile**
|
|
424
|
+
appear over the app, the same way they do on the website:
|
|
425
|
+
|
|
426
|
+
- **Badge** — a small pill above the bottom edge with the sender and a dot.
|
|
427
|
+
- **Snippet** — a card with the sender and the first words.
|
|
428
|
+
- **Full** — opens right away.
|
|
429
|
+
|
|
430
|
+
Tapping a badge or snippet opens the post: a sheet over the app for **Small**
|
|
431
|
+
posts, a full screen for **Large** ones. It shows paragraphs, lists, code, a
|
|
432
|
+
button and social links, and ends with a reply box or emoji reactions,
|
|
433
|
+
depending on the post's **Reply type**. Replies show under the post and also
|
|
434
|
+
go to an inbox conversation of their own, with the post on top, where your
|
|
435
|
+
team answers. The team's answers show under the post too, live, like a chat,
|
|
436
|
+
with a **Continue in Messenger** link; they also reach the messenger as usual.
|
|
437
|
+
Answers read under the open post count as read. The post shows text only, so
|
|
438
|
+
an answer with only attachments stays unread (badge and in-app card) until the
|
|
439
|
+
visitor opens the conversation in the messenger. Tapping a
|
|
440
|
+
reaction answers the post: the emoji pops, the post says thanks, and a moment
|
|
441
|
+
later it goes (tapping another emoji in that moment changes the pick).
|
|
442
|
+
|
|
443
|
+
**⌄** — or swiping the post's top edge down, tapping outside a sheet, or
|
|
444
|
+
Android's back button — minimizes it: it goes back to its pill (or snippet
|
|
445
|
+
card) and stays there, on later launches too, until the visitor opens it
|
|
446
|
+
again. **×** closes the post for good, and the next post in line (if any) shows.
|
|
447
|
+
|
|
448
|
+
One post shows at a time. The SDK asks for it at start-up, on login/logout
|
|
449
|
+
and when the app comes back to the foreground. The post steps aside while the
|
|
450
|
+
messenger is open. With **Add push notification on mobile** turned on,
|
|
451
|
+
Workstation pushes the post once to each app user it's for when it goes live
|
|
452
|
+
(only to apps on 1.2.0 or later, which can show it).
|
|
453
|
+
Tapping the push opens the post, closing the messenger first if it's open. This
|
|
454
|
+
needs push notifications set up (below).
|
|
455
|
+
|
|
456
|
+
Links and buttons in a post go through the same rules as links in messages
|
|
457
|
+
(see "Links in messages"), so your `onOpenUrl` can route a post button to a
|
|
458
|
+
screen in your app (`myapp://…`).
|
|
459
|
+
|
|
460
|
+
On by default; needs `<RepzoWidgetProvider>` mounted at the root. To turn
|
|
461
|
+
posts off:
|
|
462
|
+
|
|
463
|
+
```tsx
|
|
464
|
+
await RepzoWidget.boot({ channelAccountId: '…', posts: false });
|
|
465
|
+
```
|
|
466
|
+
|
|
420
467
|
## Conversation ratings
|
|
421
468
|
|
|
422
469
|
*1.0.6+.* Two minutes after a teammate closes a conversation, Workstation can
|
|
@@ -538,6 +585,46 @@ RepzoWidget.addEventListener(RepzoWidgetEvents.ConversationDidRead, async ({ con
|
|
|
538
585
|
});
|
|
539
586
|
```
|
|
540
587
|
|
|
588
|
+
### Mobile Push campaigns
|
|
589
|
+
|
|
590
|
+
*1.2.1+.* Workstation's Send → **Mobile Push** sends a push notification to
|
|
591
|
+
the people who use your app: a title, a message, an optional image, and what a
|
|
592
|
+
tap does. The person picks iOS, Android or both; each device is sent to based
|
|
593
|
+
on the platform it registered with, so there's nothing to set up for that.
|
|
594
|
+
|
|
595
|
+
- **Tapping** opens the app. When the push has a link, the SDK opens it through
|
|
596
|
+
the same rules as links in messages (see "Links in messages"): your
|
|
597
|
+
`onOpenUrl` gets it first, so you can route `myapp://orders/7` to a screen;
|
|
598
|
+
otherwise only web, mail and phone links open. The tap also counts as an
|
|
599
|
+
open in the campaign's stats.
|
|
600
|
+
- **Images** show on Android with nothing to add. On iOS they need a
|
|
601
|
+
Notification Service Extension in your app that downloads the image (with
|
|
602
|
+
Firebase, the extension calls
|
|
603
|
+
`FIRMessagingExtensionHelper.populateNotificationContent`). Without one,
|
|
604
|
+
iPhones show the push as text.
|
|
605
|
+
|
|
606
|
+
Apps on 1.2.0 or older still receive these pushes; tapping one just opens the
|
|
607
|
+
app, and the tap isn't counted as an open.
|
|
608
|
+
|
|
609
|
+
### Your app reads notification taps too?
|
|
610
|
+
|
|
611
|
+
*1.2.1+.* Firebase gives the notification that launched the app to the first
|
|
612
|
+
caller of `getInitialNotification()`. If your app calls it (or re-posts pushes
|
|
613
|
+
locally while it's open), widget pushes reach your code instead of the SDK and
|
|
614
|
+
open nothing. Hand every tapped notification to the SDK first:
|
|
615
|
+
|
|
616
|
+
```ts
|
|
617
|
+
const openTapped = (message: { messageId?: string; data?: Record<string, unknown> }) => {
|
|
618
|
+
if (RepzoWidget.handlePushNotification(message)) return; // a widget push — the SDK opens it
|
|
619
|
+
openMyScreen(message.data); // your app's own pushes
|
|
620
|
+
};
|
|
621
|
+
getInitialNotification(messaging).then((message) => message && openTapped(message));
|
|
622
|
+
onNotificationOpenedApp(messaging, openTapped);
|
|
623
|
+
```
|
|
624
|
+
|
|
625
|
+
A tap that arrives before `boot()` finishes waits for it. Passing the
|
|
626
|
+
`messageId` lets the SDK skip a tap it already saw through its own listener.
|
|
627
|
+
|
|
541
628
|
### No Firebase module?
|
|
542
629
|
|
|
543
630
|
Bring your own token pipeline and hand the token over:
|
|
@@ -567,7 +654,7 @@ sub.remove();
|
|
|
567
654
|
|
|
568
655
|
| Method | Notes |
|
|
569
656
|
| --- | --- |
|
|
570
|
-
| `boot({ channelAccountId, baseUrl?, user?, push?, onOpenUrl?, attachments?, inAppNotifications? })` | Mints/resumes the session and connects the live stream. Idempotent; safe to call repeatedly. |
|
|
657
|
+
| `boot({ channelAccountId, baseUrl?, user?, push?, onOpenUrl?, attachments?, inAppNotifications?, posts? })` | Mints/resumes the session and connects the live stream. Idempotent; safe to call repeatedly. |
|
|
571
658
|
| `loginUserWithUserAttributes({ userId?, email?, name?, phone?, userHash?, account?, signedUpAt? })` | Identifies the visitor; moves anonymous history over. `account: { id, name?, website? }` links them to a CRM account matched by `id`; `signedUpAt` (Date, unix seconds or ISO) shows as "Signed up". A different stored user is signed out first. |
|
|
572
659
|
| `loginUnidentifiedUser()` | Drops the identity (signing out a stored user), fresh anonymous session. |
|
|
573
660
|
| `updateUser(attributes)` | Custom attributes agents see on the conversation (≤30 keys, 64-char keys, 512-char values). |
|
|
@@ -581,6 +668,7 @@ sub.remove();
|
|
|
581
668
|
| `setStorageAdapter(adapter)` | Device id/theme/unread persistence — call before `boot`. |
|
|
582
669
|
| `setSecureStorageAdapter(adapter)` | Keychain/Keystore store for the token + user key — call before `boot`. |
|
|
583
670
|
| `setPushToken({ token, platform?, bundleId? })` | Manual FCM token for hosts without the Firebase module. |
|
|
671
|
+
| `handlePushNotification({ messageId?, data? })` | *1.2.1+.* Hand over a notification tap your app read itself; true when it's a widget push (see "Your app reads notification taps too?"). |
|
|
584
672
|
|
|
585
673
|
`RepzoWidgetLauncher` is an optional floating bubble with an unread badge for
|
|
586
674
|
apps without their own chat entry point — mount it inside a full-screen
|
|
@@ -610,6 +698,7 @@ action from you:
|
|
|
610
698
|
| 0.1.x (installed from git) | Install from npm and go straight to 1.0.1 or later. 0.1.10 also changed `getUnreadConversationCount()`, link handling and `http://` base URLs; see the changelog. |
|
|
611
699
|
| 1.0.0 | In-app notification cards are now on by default (`inAppNotifications: false` turns them off). The attach button appears if `expo-image-picker` or `expo-document-picker` is installed (`attachments: { enabled: false }` hides it). The `withRepzoWidget` Metro wrapper is optional now. |
|
|
612
700
|
| 1.0.9 or older | Nothing required. Development builds now warn once if the visitor token isn't in secure storage, or if the device has no secure random source — see "Secure token storage" and "Requirements". |
|
|
701
|
+
| 1.1.0 or older | Posts from Workstation now show over the app by default, once one is set live for Mobile (`posts: false` turns them off). They need `<RepzoWidgetProvider>` mounted at the root. |
|
|
613
702
|
|
|
614
703
|
## Troubleshooting
|
|
615
704
|
|
|
@@ -144,6 +144,31 @@ class WidgetApiClient {
|
|
|
144
144
|
return this.request(`/api/widget/outbound/${encodeURIComponent(this.channelAccountId)}`);
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
+
/**
|
|
148
|
+
* The Send post this visitor should see now, if any.
|
|
149
|
+
* `recheckInMs`: ask again after this long — the shown one stops then.
|
|
150
|
+
*/
|
|
151
|
+
getPost() {
|
|
152
|
+
return this.request('/api/widget/send/post?platform=mobile');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Reports what the visitor did with a post; `hidden` means load the next
|
|
157
|
+
* one. A reply comes back as saved (`reply`) — it's also delivered to the
|
|
158
|
+
* post's conversation in the inbox, where the team answers.
|
|
159
|
+
*/
|
|
160
|
+
sendPostInteraction(campaignId, kind, value) {
|
|
161
|
+
return this.request(`/api/widget/send/posts/${encodeURIComponent(campaignId)}/interactions`, {
|
|
162
|
+
method: 'POST',
|
|
163
|
+
body: value === undefined ? {
|
|
164
|
+
kind
|
|
165
|
+
} : {
|
|
166
|
+
kind,
|
|
167
|
+
value
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
147
172
|
/**
|
|
148
173
|
* Does NOT store the returned token — the store persists it only once it
|
|
149
174
|
* knows the identity op that asked for it is still current.
|
|
@@ -268,6 +293,16 @@ class WidgetApiClient {
|
|
|
268
293
|
});
|
|
269
294
|
}
|
|
270
295
|
|
|
296
|
+
/** A Send push (`document_type: 'send_push'`) was tapped — counts as an open in Workstation. */
|
|
297
|
+
reportPushOpened(deliveryId) {
|
|
298
|
+
return this.request('/api/widget/push-opened', {
|
|
299
|
+
method: 'POST',
|
|
300
|
+
body: {
|
|
301
|
+
deliveryId
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
|
|
271
306
|
/** Logout passes the session's token explicitly and `skipReauth`. */
|
|
272
307
|
removePushToken(token, auth = {}) {
|
|
273
308
|
return this.request('/api/widget/push-token', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_storage","require","_safeUrl","TERMINAL_CODES","Set","isTerminalErrorCode","code","has","RepzoWidgetError","Error","constructor","message","status","name","fromResponse","body","payload","exports","WidgetApiClient","baseUrl","channelAccountId","token","tokenLoaded","reauthorize","onTerminalError","configure","replace","getBaseUrl","getChannelAccountId","getToken","SecureStorage","getItem","TOKEN_KEY","setToken","setItem","clearToken","removeItem","resolveUrl","url","trimmed","trim","isHttpUrl","urlScheme","resolved","startsWith","request","path","options","sentToken","send","headers","authToken","undefined","Authorization","fetch","method","JSON","stringify","error","response","skipReauth","refreshed","ok","json","catch","getConfig","platform","query","encodeURIComponent","getOutboundMessage","init","params","visitorToken","resumeToken","user","email","phone","userId","user_id","userHash","user_hash","account","id","signedUpAt","signed_up_at","Date","toISOString","trackingVisitorId","sdkVersion","logout","sendMessage","data","listConversations","listMessages","conversationId","cursor","markConversationRead","rateConversation","ratingId","identify","sendTyping","isTyping","trackEvent","registerPushToken","removePushToken","auth"],"sourceRoot":"../../../src","sources":["api/client.ts"],"mappings":";;;;;;;AAUA,IAAAA,QAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_storage","require","_safeUrl","TERMINAL_CODES","Set","isTerminalErrorCode","code","has","RepzoWidgetError","Error","constructor","message","status","name","fromResponse","body","payload","exports","WidgetApiClient","baseUrl","channelAccountId","token","tokenLoaded","reauthorize","onTerminalError","configure","replace","getBaseUrl","getChannelAccountId","getToken","SecureStorage","getItem","TOKEN_KEY","setToken","setItem","clearToken","removeItem","resolveUrl","url","trimmed","trim","isHttpUrl","urlScheme","resolved","startsWith","request","path","options","sentToken","send","headers","authToken","undefined","Authorization","fetch","method","JSON","stringify","error","response","skipReauth","refreshed","ok","json","catch","getConfig","platform","query","encodeURIComponent","getOutboundMessage","getPost","sendPostInteraction","campaignId","kind","value","init","params","visitorToken","resumeToken","user","email","phone","userId","user_id","userHash","user_hash","account","id","signedUpAt","signed_up_at","Date","toISOString","trackingVisitorId","sdkVersion","logout","sendMessage","data","listConversations","listMessages","conversationId","cursor","markConversationRead","rateConversation","ratingId","identify","sendTyping","isTyping","trackEvent","registerPushToken","reportPushOpened","deliveryId","removePushToken","auth"],"sourceRoot":"../../../src","sources":["api/client.ts"],"mappings":";;;;;;;AAUA,IAAAA,QAAA,GAAAC,OAAA;AAeA,IAAAC,QAAA,GAAAD,OAAA;AAzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmBA;AACA,MAAME,cAAc,GAAG,IAAIC,GAAG,CAAuB,CACnD,wBAAwB,EACxB,8BAA8B,CAC/B,CAAC;AAEK,SAASC,mBAAmBA,CAACC,IAA+B,EAAW;EAC5E,OAAO,CAAC,CAACA,IAAI,IAAIH,cAAc,CAACI,GAAG,CAACD,IAA4B,CAAC;AACnE;AAEO,MAAME,gBAAgB,SAASC,KAAK,CAAC;EAK1CC,WAAWA,CAACC,OAAe,EAAEC,MAAc,EAAEN,IAA0B,GAAG,MAAM,EAAE;IAChF,KAAK,CAACK,OAAO,CAAC;IACd,IAAI,CAACE,IAAI,GAAG,kBAAkB;IAC9B,IAAI,CAACD,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACN,IAAI,GAAGA,IAAI;EAClB;;EAEA;EACA,OAAOQ,YAAYA,CAACF,MAAc,EAAEG,IAAa,EAAoB;IACnE,MAAMC,OAAO,GAAID,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,GAAGA,IAAI,GAAG,CAAC,CAG3D;IACD,MAAMJ,OAAO,GAAG,OAAOK,OAAO,CAACL,OAAO,KAAK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AAEU,MAAM,EAAE,MAAM;MAAExC,IAAI,EAAE;QAAE+F;MAAW;IAAE,CAAC,CAAC;EAC1F;;EAEA;EACAC,eAAeA,CACb1F,KAAa,EACb2F,IAAyD,GAAG,CAAC,CAAC,EAC/C;IACf,OAAO,IAAI,CAACnE,OAAO,CAAC,wBAAwB,EAAE;MAC5CU,MAAM,EAAE,QAAQ;MAChBxC,IAAI,EAAE;QAAEM;MAAM,CAAC;MACf,GAAG2F;IACL,CAAC,CAAC;EACJ;AACF;AAAC/F,OAAA,CAAAC,eAAA,GAAAA,eAAA","ignoreList":[]}
|
package/lib/commonjs/i18n.js
CHANGED
|
@@ -150,6 +150,20 @@ const DEFAULT_LABELS = exports.DEFAULT_LABELS = {
|
|
|
150
150
|
notificationNewReply: 'New reply',
|
|
151
151
|
notificationAttachment: 'Sent an attachment',
|
|
152
152
|
notificationOpenHint: 'Opens the conversation',
|
|
153
|
+
// Send posts over the app.
|
|
154
|
+
postFrom: '{name} from {workspace}',
|
|
155
|
+
postNewMessage: 'New message',
|
|
156
|
+
postOpenHint: 'Opens the message',
|
|
157
|
+
postClose: 'Close',
|
|
158
|
+
postMinimize: 'Minimize',
|
|
159
|
+
postReplyPlaceholder: 'Write a reply…',
|
|
160
|
+
postSend: 'Send',
|
|
161
|
+
postSent: 'Sent',
|
|
162
|
+
postReplyFailed: "Couldn't send your reply. Try again.",
|
|
163
|
+
postReactions: 'Reactions',
|
|
164
|
+
postThanks: 'Thanks for your feedback!',
|
|
165
|
+
postConversation: 'Your conversation',
|
|
166
|
+
postContinueChat: 'Continue in Messenger',
|
|
153
167
|
// Rich blocks an agent can send.
|
|
154
168
|
blockService: 'Service',
|
|
155
169
|
blockProduct: 'Product',
|
package/lib/commonjs/i18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_locales","require","createTranslator","config","locale","defaultLocale","active","baseLanguage","fallbackLocale","key","fallback","translations","BUNDLED_TRANSLATIONS","WELCOME_TEXT_KEYS","localizeWelcomeText","translate","localized","forEach","DEFAULT_LABELS","exports","back","loading","loadEarlier","emptyConversation","messagePlaceholder","attachFile","attachPhotoLibrary","attachTakePhoto","attachChooseFile","removeAttachment","attachmentTooLarge","attachmentTooMany","attachmentsTooLargeTogether","attachmentFailed","imageLoadFailed","openImageExternally","cameraPermissionDenied","cancel","failedToSend","thinking","messages","noMessages","historyHidden","startBelow","preChatTitle","preChatSubtitle","preChatSkip","preChatSubmit","viewPreviousConversations","homeRecentTitle","homeViewAllCount","homeNoConversations","homeStatusOnline","homeStatusAway","unreadBadge","team","home","close","retry","connectionError","connecting","chatUnavailable","identityVerificationError","widgetCrashed","timeJustNow","timeMinutes","timeHours","timeDays","timeMonths","timeYears","today","yesterday","conversationUpdated","messageDeleted","messageSent","messageSeen","waitingForTeammate","joinedConversation","ratingQuestion","ratingReasonPrompt","ratingCommentPlaceholder","ratingSubmit","ratingDone","ratingThanks","ratingLocked","ratingExpired","ratingFailed","rating1","rating2","rating3","rating4","rating5","procedureSend","procedureSent","procedureShareDetails","procedureDetailsSent","procedureHide","procedureFieldCount","procedureFieldCountOne","procedureTitle","procedureEmailPlaceholder","procedurePhonePlaceholder","fieldRequired","invalidEmail","working","outboundTitle","outboundCta","dismiss","notificationReplyFrom","notificationNewReply","notificationAttachment","notificationOpenHint","blockService","blockProduct","blockChooseTime","blockProfessional","blockPriceOffer","blockSubtotal","blockDiscount","blockTax","blockShipping","blockTotal","blockMinutes","blockSave","blockAnyAvailable","blockWithProvider","blockBookTime","blockValidUntil","launcherOpen","launcherClose","formatLabel","template","values","replace","match","String","buildLabels","labels","Object","keys"],"sourceRoot":"../../src","sources":["i18n.ts"],"mappings":";;;;;;;;;;AAMA,IAAAA,QAAA,GAAAC,OAAA;AANA;AACA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,gBAAgBA,CAACC,MAA2B,EAAEC,MAAc,EAAc;EACxF,MAAMC,aAAa,GAAGF,MAAM,EAAEE,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S;EACvBC,YAAY,EAAE,SAAS;EACvBC,eAAe,EAAE,eAAe;EAChCC,iBAAiB,EAAE,cAAc;EACjCC,eAAe,EAAE,aAAa;EAC9BC,aAAa,EAAE,UAAU;EACzBC,aAAa,EAAE,UAAU;EACzBC,QAAQ,EAAE,KAAK;EACfC,aAAa,EAAE,UAAU;EACzBC,UAAU,EAAE,OAAO;EACnBC,YAAY,EAAE,aAAa;EAC3BC,SAAS,EAAE,MAAM;EACjBC,iBAAiB,EAAE,eAAe;EAClCC,iBAAiB,EAAE,aAAa;EAChCC,aAAa,EAAE,gBAAgB;EAC/BC,eAAe,EAAE,oBAAoB;EACrC;EACAC,YAAY,EAAE,WAAW;EACzBC,aAAa,EAAE;AACjB,CAAU;AAIV;AACA;AACA;AACA;AACO,SAASC,WAAWA,CAACC,QAAgB,EAAEC,MAAuC,EAAU;EAC7F,OAAOD,QAAQ,CAACE,OAAO,CAAC,YAAY,EAAE,CAACC,KAAK,
|
|
1
|
+
{"version":3,"names":["_locales","require","createTranslator","config","locale","defaultLocale","active","baseLanguage","fallbackLocale","key","fallback","translations","BUNDLED_TRANSLATIONS","WELCOME_TEXT_KEYS","localizeWelcomeText","translate","localized","forEach","DEFAULT_LABELS","exports","back","loading","loadEarlier","emptyConversation","messagePlaceholder","attachFile","attachPhotoLibrary","attachTakePhoto","attachChooseFile","removeAttachment","attachmentTooLarge","attachmentTooMany","attachmentsTooLargeTogether","attachmentFailed","imageLoadFailed","openImageExternally","cameraPermissionDenied","cancel","failedToSend","thinking","messages","noMessages","historyHidden","startBelow","preChatTitle","preChatSubtitle","preChatSkip","preChatSubmit","viewPreviousConversations","homeRecentTitle","homeViewAllCount","homeNoConversations","homeStatusOnline","homeStatusAway","unreadBadge","team","home","close","retry","connectionError","connecting","chatUnavailable","identityVerificationError","widgetCrashed","timeJustNow","timeMinutes","timeHours","timeDays","timeMonths","timeYears","today","yesterday","conversationUpdated","messageDeleted","messageSent","messageSeen","waitingForTeammate","joinedConversation","ratingQuestion","ratingReasonPrompt","ratingCommentPlaceholder","ratingSubmit","ratingDone","ratingThanks","ratingLocked","ratingExpired","ratingFailed","rating1","rating2","rating3","rating4","rating5","procedureSend","procedureSent","procedureShareDetails","procedureDetailsSent","procedureHide","procedureFieldCount","procedureFieldCountOne","procedureTitle","procedureEmailPlaceholder","procedurePhonePlaceholder","fieldRequired","invalidEmail","working","outboundTitle","outboundCta","dismiss","notificationReplyFrom","notificationNewReply","notificationAttachment","notificationOpenHint","postFrom","postNewMessage","postOpenHint","postClose","postMinimize","postReplyPlaceholder","postSend","postSent","postReplyFailed","postReactions","postThanks","postConversation","postContinueChat","blockService","blockProduct","blockChooseTime","blockProfessional","blockPriceOffer","blockSubtotal","blockDiscount","blockTax","blockShipping","blockTotal","blockMinutes","blockSave","blockAnyAvailable","blockWithProvider","blockBookTime","blockValidUntil","launcherOpen","launcherClose","formatLabel","template","values","replace","match","String","buildLabels","labels","Object","keys"],"sourceRoot":"../../src","sources":["i18n.ts"],"mappings":";;;;;;;;;;AAMA,IAAAA,QAAA,GAAAC,OAAA;AANA;AACA;AACA;AACA;AACA;;AAOA;AACA;AACA;AACA;AACA;AACA;AACO,SAASC,gBAAgBA,CAACC,MAA2B,EAAEC,MAAc,EAAc;EACxF,MAAMC,aAAa,GAAGF,MAAM,EAAEE,aAAa,IAAI,IAAI;EACnD,MAAMC,MAAM,GAAG,IAAAC,qBAAY,EAACH,MAAM,CAAC;EACnC,MAAMI,cAAc,GAAG,IAAAD,qBAAY,EAACF,aAAa,CAAC;EAElD,OAAO,CAACI,GAAG,EAAEC,QAAQ,KACnBP,MAAM,EAAEQ,YAAY,GAAGP,MAAM,CAAC,GAAGK,GAAG,CAAC,IACrCN,MAAM,EAAEQ,YAAY,GAAGL,MAAM,CAAC,GAAGG,GAAG,CAAC,IACrCG,6BAAoB,CAACN,MAAM,CAAC,GAAGG,GAAG,CAAgC,IAClEN,MAAM,EAAEQ,YAAY,GAAGN,aAAa,CAAC,GAAGI,GAAG,CAA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,iBAAiB,EAAE,cAAc;EACjCC,eAAe,EAAE,aAAa;EAC9BC,aAAa,EAAE,UAAU;EACzBC,aAAa,EAAE,UAAU;EACzBC,QAAQ,EAAE,KAAK;EACfC,aAAa,EAAE,UAAU;EACzBC,UAAU,EAAE,OAAO;EACnBC,YAAY,EAAE,aAAa;EAC3BC,SAAS,EAAE,MAAM;EACjBC,iBAAiB,EAAE,eAAe;EAClCC,iBAAiB,EAAE,aAAa;EAChCC,aAAa,EAAE,gBAAgB;EAC/BC,eAAe,EAAE,oBAAoB;EACrC;EACAC,YAAY,EAAE,WAAW;EACzBC,aAAa,EAAE;AACjB,CAAU;AAIV;AACA;AACA;AACA;AACO,SAASC,WAAWA,CAACC,QAAgB,EAAEC,MAAuC,EAAU;EAC7F,OAAOD,QAAQ,CAACE,OAAO,CAAC,YAAY,EAAE,CAACC,KAAK,EAAE1I,GAAW,KACvDA,GAAG,IAAIwI,MAAM,GAAGG,MAAM,CAACH,MAAM,CAACxI,GAAG,CAAC,CAAC,GAAG0I,KACxC,CAAC;AACH;AAEO,SAASE,WAAWA,CAACtI,SAAqB,EAA4B;EAC3E,MAAMuI,MAAM,GAAG,CAAC,CAA6B;EAC5CC,MAAM,CAACC,IAAI,CAACtI,cAAc,CAAC,CAAgBD,OAAO,CAAER,GAAG,IAAK;IAC3D6I,MAAM,CAAC7I,GAAG,CAAC,GAAGM,SAAS,CAACN,GAAG,EAAES,cAAc,CAACT,GAAG,CAAC,CAAC;EACnD,CAAC,CAAC;EACF,OAAO6I,MAAM;AACf","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -92,7 +92,8 @@ const RepzoWidget = {
|
|
|
92
92
|
addEventListener: (event, listener) => _controller.controller.events.addListener(event, listener),
|
|
93
93
|
setStorageAdapter: adapter => (0, _storage.setStorageAdapter)(adapter),
|
|
94
94
|
setSecureStorageAdapter: adapter => (0, _storage.setSecureStorageAdapter)(adapter),
|
|
95
|
-
setPushToken: options => _controller.controller.store.push.setManualToken(options)
|
|
95
|
+
setPushToken: options => _controller.controller.store.push.setManualToken(options),
|
|
96
|
+
handlePushNotification: message => _controller.controller.store.push.handleNotification(message)
|
|
96
97
|
};
|
|
97
98
|
var _default = exports.default = RepzoWidget;
|
|
98
99
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_controller","require","_events","_storage","_WidgetProvider","_Launcher","_client","_types","_useWidgetState","Space","exports","RepzoWidget","boot","options","controller","store","loginUnidentifiedUser","loginUserWithUserAttributes","user","updateUser","attributes","logout","present","presentSpace","space","presentConversation","conversationId","openConversation","hide","getUnreadConversationCount","Object","values","getState","unreadByConversation","filter","count","length","getUnreadMessageCount","unreadCount","logEvent","eventName","metadata","track","setLocale","locale","addEventListener","event","listener","events","addListener","setStorageAdapter","adapter","setSecureStorageAdapter","setPushToken","push","setManualToken","_default","default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AASA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AAxBA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"names":["_controller","require","_events","_storage","_WidgetProvider","_Launcher","_client","_types","_useWidgetState","Space","exports","RepzoWidget","boot","options","controller","store","loginUnidentifiedUser","loginUserWithUserAttributes","user","updateUser","attributes","logout","present","presentSpace","space","presentConversation","conversationId","openConversation","hide","getUnreadConversationCount","Object","values","getState","unreadByConversation","filter","count","length","getUnreadMessageCount","unreadCount","logEvent","eventName","metadata","track","setLocale","locale","addEventListener","event","listener","events","addListener","setStorageAdapter","adapter","setSecureStorageAdapter","setPushToken","push","setManualToken","handlePushNotification","message","handleNotification","_default","default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,QAAA,GAAAF,OAAA;AASA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AAxBA;AACA;AACA;AACA;AACA;AACA;AACA;AAwDA;AAAA,IACYQ,KAAK,GAAAC,OAAA,CAAAD,KAAA,0BAALA,KAAK;EAALA,KAAK;EAALA,KAAK;EAAA,OAALA,KAAK;AAAA;AA4GjB,MAAME,WAA4B,GAAG;EACnCC,IAAI,EAAGC,OAAO,IAAKC,sBAAU,CAACC,KAAK,CAACH,IAAI,CAACC,OAAO,CAAC;EAEjDG,qBAAqB,EAAEA,CAAA,KAAMF,sBAAU,CAACC,KAAK,CAACC,qBAAqB,CAAC,CAAC;EAErEC,2BAA2B,EAAGC,IAAI,IAAKJ,sBAAU,CAACC,KAAK,CAACE,2BAA2B,CAACC,IAAI,CAAC;EAEzFC,UAAU,EAAGC,UAAU,IAAKN,sBAAU,CAACC,KAAK,CAACI,UAAU,CAACC,UAAU,CAAC;EAEnEC,MAAM,EAAEA,CAAA,KAAMP,sBAAU,CAACC,KAAK,CAACM,MAAM,CAAC,CAAC;EAEvCC,OAAO,EAAE,MAAAA,CAAA,KAAY;IACnBR,sBAAU,CAACC,KAAK,CAACO,OAAO,CAAC,CAAC;EAC5B,CAAC;EAEDC,YAAY,EAAE,MAAOC,KAAK,IAAK;IAC7BV,sBAAU,CAACC,KAAK,CAACO,OAAO,CAACE,KAAwB,CAAC;EACpD,CAAC;EAE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,QAAA,GAAAjD,OAAA,CAAAkD,OAAA,GAEajD,WAAW","ignoreList":[]}
|
package/lib/commonjs/locales.js
CHANGED
|
@@ -110,6 +110,19 @@ const ar = {
|
|
|
110
110
|
notificationNewReply: 'رد جديد',
|
|
111
111
|
notificationAttachment: 'أرسل مرفقًا',
|
|
112
112
|
notificationOpenHint: 'يفتح المحادثة',
|
|
113
|
+
postFrom: '{name} من {workspace}',
|
|
114
|
+
postNewMessage: 'رسالة جديدة',
|
|
115
|
+
postOpenHint: 'يفتح الرسالة',
|
|
116
|
+
postClose: 'إغلاق',
|
|
117
|
+
postMinimize: 'تصغير',
|
|
118
|
+
postReplyPlaceholder: 'اكتب ردًا…',
|
|
119
|
+
postSend: 'إرسال',
|
|
120
|
+
postSent: 'تم الإرسال',
|
|
121
|
+
postReplyFailed: 'تعذّر إرسال ردك. حاول مرة أخرى.',
|
|
122
|
+
postReactions: 'التفاعلات',
|
|
123
|
+
postThanks: 'شكراً على ملاحظاتك!',
|
|
124
|
+
postConversation: 'محادثتك',
|
|
125
|
+
postContinueChat: 'تابع في المحادثة',
|
|
113
126
|
blockService: 'خدمة',
|
|
114
127
|
blockProduct: 'منتج',
|
|
115
128
|
blockChooseTime: 'اختر وقتًا',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ar","back","loading","loadEarlier","emptyConversation","messagePlaceholder","attachFile","attachPhotoLibrary","attachTakePhoto","attachChooseFile","removeAttachment","attachmentTooLarge","attachmentTooMany","attachmentsTooLargeTogether","attachmentFailed","imageLoadFailed","openImageExternally","cameraPermissionDenied","cancel","failedToSend","thinking","messages","noMessages","historyHidden","startBelow","preChatTitle","preChatSubtitle","preChatSkip","preChatSubmit","viewPreviousConversations","homeRecentTitle","homeViewAllCount","homeNoConversations","homeStatusOnline","homeStatusAway","unreadBadge","team","home","close","retry","connectionError","connecting","chatUnavailable","identityVerificationError","widgetCrashed","timeJustNow","timeMinutes","timeHours","timeDays","timeMonths","timeYears","today","yesterday","conversationUpdated","messageDeleted","messageSent","messageSeen","waitingForTeammate","joinedConversation","ratingQuestion","ratingReasonPrompt","ratingCommentPlaceholder","ratingSubmit","ratingDone","ratingThanks","ratingLocked","ratingExpired","ratingFailed","rating1","rating2","rating3","rating4","rating5","procedureSend","procedureSent","procedureShareDetails","procedureDetailsSent","procedureHide","procedureFieldCount","procedureFieldCountOne","procedureTitle","fieldRequired","invalidEmail","working","outboundTitle","outboundCta","dismiss","notificationReplyFrom","notificationNewReply","notificationAttachment","notificationOpenHint","blockService","blockProduct","blockChooseTime","blockProfessional","blockPriceOffer","blockSubtotal","blockDiscount","blockTax","blockShipping","blockTotal","blockMinutes","blockSave","blockAnyAvailable","blockWithProvider","blockBookTime","blockValidUntil","launcherOpen","launcherClose","BUNDLED_TRANSLATIONS","exports","baseLanguage","locale","split","toLowerCase"],"sourceRoot":"../../src","sources":["locales.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,MAAMA,EAAY,GAAG;EACnBC,IAAI,EAAE,MAAM;EACZC,OAAO,EAAE,iBAAiB;EAC1BC,WAAW,EAAE,uBAAuB;EACpCC,iBAAiB,EAAE,0BAA0B;EAC7CC,kBAAkB,EAAE,eAAe;EACnCC,UAAU,EAAE,WAAW;EACvBC,kBAAkB,EAAE,aAAa;EACjCC,eAAe,EAAE,aAAa;EAC9BC,gBAAgB,EAAE,KAAK;EACvBC,gBAAgB,EAAE,cAAc;EAChCC,kBAAkB,EAAE,qCAAqC;EACzDC,iBAAiB,EAAE,oCAAoC;EACvDC,2BAA2B,EAAE,8DAA8D;EAC3FC,gBAAgB,EAAE,sBAAsB;EACxCC,eAAe,EAAE,uBAAuB;EACxCC,mBAAmB,EAAE,YAAY;EACjCC,sBAAsB,EAAE,qDAAqD;EAC7EC,MAAM,EAAE,OAAO;EACfC,YAAY,EAAE,cAAc;EAC5BC,QAAQ,EAAE,MAAM;EAChBC,QAAQ,EAAE,SAAS;EAC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adEarlier","emptyConversation","messagePlaceholder","attachFile","attachPhotoLibrary","attachTakePhoto","attachChooseFile","removeAttachment","attachmentTooLarge","attachmentTooMany","attachmentsTooLargeTogether","attachmentFailed","imageLoadFailed","openImageExternally","cameraPermissionDenied","cancel","failedToSend","thinking","messages","noMessages","historyHidden","startBelow","preChatTitle","preChatSubtitle","preChatSkip","preChatSubmit","viewPreviousConversations","homeRecentTitle","homeViewAllCount","homeNoConversations","homeStatusOnline","homeStatusAway","unreadBadge","team","home","close","retry","connectionError","connecting","chatUnavailable","identityVerificationError","widgetCrashed","timeJustNow","timeMinutes","timeHours","timeDays","timeMonths","timeYears","today","yesterday","conversationUpdated","messageDeleted","messageSent","messageSeen","waitingForTeammate","joinedConversation","ratingQuestion","ratingReasonPrompt","ratingCommentPlaceholder","ratingSubmit","ratingDone","ratingThanks","ratingLocked","ratingExpired","ratingFailed","rating1","rating2","rating3","rating4","rating5","procedureSend","procedureSent","procedureShareDetails","procedureDetailsSent","procedureHide","procedureFieldCount","procedureFieldCountOne","procedureTitle","fieldRequired","invalidEmail","working","outboundTitle","outboundCta","dismiss","notificationReplyFrom","notificationNewReply","notificationAttachment","notificationOpenHint","postFrom","postNewMessage","postOpenHint","postClose","postMinimize","postReplyPlaceholder","postSend","postSent","postReplyFailed","postReactions","postThanks","postConversation","postContinueChat","blockService","blockProduct","blockChooseTime","blockProfessional","blockPriceOffer","blockSubtotal","blockDiscount","blockTax","blockShipping","blockTotal","blockMinutes","blockSave","blockAnyAvailable","blockWithProvider","blockBookTime","blockValidUntil","launcherOpen","launcherClose","BUNDLED_TRANSLATIONS","exports","baseLanguage","locale","split","toLowerCase"],"sourceRoot":"../../src","sources":["locales.ts"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,MAAMA,EAAY,GAAG;EACnBC,IAAI,EAAE,MAAM;EACZC,OAAO,EAAE,iBAAiB;EAC1BC,WAAW,EAAE,uBAAuB;EACpCC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AAc;EAC5BC,SAAS,EAAE,OAAO;EAClBC,YAAY,EAAE,OAAO;EACrBC,oBAAoB,EAAE,YAAY;EAClCC,QAAQ,EAAE,OAAO;EACjBC,QAAQ,EAAE,YAAY;EACtBC,eAAe,EAAE,iCAAiC;EAClDC,aAAa,EAAE,WAAW;EAC1BC,UAAU,EAAE,qBAAqB;EACjCC,gBAAgB,EAAE,SAAS;EAC3BC,gBAAgB,EAAE,kBAAkB;EACpCC,YAAY,EAAE,MAAM;EACpBC,YAAY,EAAE,MAAM;EACpBC,eAAe,EAAE,YAAY;EAC7BC,iBAAiB,EAAE,QAAQ;EAC3BC,eAAe,EAAE,SAAS;EAC1BC,aAAa,EAAE,gBAAgB;EAC/BC,aAAa,EAAE,OAAO;EACtBC,QAAQ,EAAE,SAAS;EACnBC,aAAa,EAAE,OAAO;EACtBC,UAAU,EAAE,UAAU;EACtBC,YAAY,EAAE,eAAe;EAC7BC,SAAS,EAAE,KAAK;EAChBC,iBAAiB,EAAE,cAAc;EACjCC,iBAAiB,EAAE,WAAW;EAC9BC,aAAa,EAAE,iBAAiB;EAChCC,eAAe,EAAE,iBAAiB;EAClCC,YAAY,EAAE,cAAc;EAC5BC,aAAa,EAAE;AACjB,CAAC;AAEM,MAAMC,oBAA8C,GAAAC,OAAA,CAAAD,oBAAA,GAAG;EAAE1H;AAAG,CAAC;;AAEpE;AACO,SAAS4H,YAAYA,CAACC,MAAsB,EAAU;EAC3D,OAAO,CAACA,MAAM,IAAI,EAAE,EAAEC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAEC,WAAW,CAAC,CAAC,IAAI,EAAE;AAC7D","ignoreList":[]}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.PushManager = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
+
var _safeUrl = require("../ui/utils/safe-url.js");
|
|
8
9
|
/**
|
|
9
10
|
* FCM push notifications — optional.
|
|
10
11
|
*
|
|
@@ -57,6 +58,12 @@ function resolveMessaging() {
|
|
|
57
58
|
return null;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
61
|
+
const WIDGET_DOCUMENT_TYPES = new Set(['widget_message', 'send_post', 'send_push']);
|
|
62
|
+
|
|
63
|
+
/** A push sent by Workstation for the widget (vs. one of the host app's own). */
|
|
64
|
+
function isWidgetPush(data) {
|
|
65
|
+
return !!data && WIDGET_DOCUMENT_TYPES.has(data.document_type) && typeof data.document_id === 'string' && !!data.document_id;
|
|
66
|
+
}
|
|
60
67
|
class PushManager {
|
|
61
68
|
options = {};
|
|
62
69
|
listenersWired = false;
|
|
@@ -69,9 +76,16 @@ class PushManager {
|
|
|
69
76
|
|
|
70
77
|
/** Registrations still on the wire; unregister() waits for them. */
|
|
71
78
|
inflight = new Set();
|
|
72
|
-
|
|
79
|
+
|
|
80
|
+
/** Taps the host handed over before the session was ready; start() opens them. */
|
|
81
|
+
pendingTaps = [];
|
|
82
|
+
|
|
83
|
+
/** The host and our own listener can both see one tap — open it once. */
|
|
84
|
+
handledMessageIds = new Set();
|
|
85
|
+
constructor(client, openConversation, openPost = () => {}) {
|
|
73
86
|
this.client = client;
|
|
74
87
|
this.openConversation = openConversation;
|
|
88
|
+
this.openPost = openPost;
|
|
75
89
|
}
|
|
76
90
|
|
|
77
91
|
/** Remember the boot options; actual work happens in start() post-init. */
|
|
@@ -86,6 +100,9 @@ class PushManager {
|
|
|
86
100
|
*/
|
|
87
101
|
async start() {
|
|
88
102
|
this.active = true;
|
|
103
|
+
const pending = this.pendingTaps;
|
|
104
|
+
this.pendingTaps = [];
|
|
105
|
+
pending.forEach(message => this.handleTap(message));
|
|
89
106
|
if (this.manualToken) {
|
|
90
107
|
await this.register(this.manualToken);
|
|
91
108
|
}
|
|
@@ -152,6 +169,8 @@ class PushManager {
|
|
|
152
169
|
*/
|
|
153
170
|
async unregister(authToken) {
|
|
154
171
|
this.active = false;
|
|
172
|
+
// A tap held for this session must not open in the next user's.
|
|
173
|
+
this.pendingTaps = [];
|
|
155
174
|
await Promise.all([...this.inflight]);
|
|
156
175
|
const token = this.lastToken;
|
|
157
176
|
this.lastToken = null;
|
|
@@ -182,25 +201,63 @@ class PushManager {
|
|
|
182
201
|
return run;
|
|
183
202
|
}
|
|
184
203
|
wireTapHandlers(messaging) {
|
|
204
|
+
// These listeners outlive logout, so taps go through the same session gate
|
|
205
|
+
// as host-forwarded ones: held until start(), and only marked handled then.
|
|
185
206
|
// Background → tapped: the app was alive, just not in front.
|
|
186
207
|
messaging.onNotificationOpenedApp(remoteMessage => {
|
|
187
|
-
this.
|
|
208
|
+
this.handleNotification(remoteMessage);
|
|
188
209
|
});
|
|
189
210
|
|
|
190
211
|
// Killed → tapped: the click that launched the app.
|
|
191
212
|
void messaging.getInitialNotification().then(remoteMessage => {
|
|
192
|
-
if (remoteMessage) this.
|
|
213
|
+
if (remoteMessage) this.handleNotification(remoteMessage);
|
|
193
214
|
}).catch(() => {});
|
|
194
215
|
}
|
|
195
216
|
|
|
196
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* A tap the host app read itself (`RepzoWidget.handlePushNotification`).
|
|
219
|
+
* Firebase hands out the notification that launched the app only once, so
|
|
220
|
+
* when the host reads it first our own listener gets nothing; the same goes
|
|
221
|
+
* for notifications the host re-posts locally while in the foreground.
|
|
222
|
+
* True when it's a widget push (so the host skips its own routing); it opens
|
|
223
|
+
* now, or once the session is ready.
|
|
224
|
+
*/
|
|
225
|
+
handleNotification(message) {
|
|
226
|
+
if (!isWidgetPush(message?.data)) return false;
|
|
227
|
+
if (this.active) this.handleTap(message);else this.pendingTaps.push(message);
|
|
228
|
+
return true;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Only widget pushes are ours — host app notifications pass through. A team
|
|
233
|
+
* reply opens its conversation; a Send post opens the post; a Send mobile
|
|
234
|
+
* push reports the open and follows its link, if it has one.
|
|
235
|
+
*/
|
|
197
236
|
handleTap(remoteMessage) {
|
|
198
237
|
const data = remoteMessage?.data;
|
|
199
|
-
if (data
|
|
200
|
-
const
|
|
201
|
-
if (typeof
|
|
202
|
-
this.
|
|
238
|
+
if (!isWidgetPush(data)) return;
|
|
239
|
+
const messageId = remoteMessage?.messageId;
|
|
240
|
+
if (typeof messageId === 'string' && messageId) {
|
|
241
|
+
if (this.handledMessageIds.has(messageId)) return;
|
|
242
|
+
this.handledMessageIds.add(messageId);
|
|
243
|
+
}
|
|
244
|
+
const documentId = data.document_id;
|
|
245
|
+
if (data?.document_type === 'widget_message') this.openConversation(documentId);else if (data?.document_type === 'send_post') this.openPost(documentId);else if (data?.document_type === 'send_push') this.openSendPush(data);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The tap already opened the app. A link goes through the same gate as links
|
|
250
|
+
* in messages (`onOpenUrl` first, then web/mail/phone links), so the host can
|
|
251
|
+
* route `myapp://…` itself.
|
|
252
|
+
*/
|
|
253
|
+
openSendPush(data) {
|
|
254
|
+
const deliveryId = data.delivery_id;
|
|
255
|
+
if (typeof deliveryId === 'string' && deliveryId) {
|
|
256
|
+
this.client.reportPushOpened(deliveryId).catch(() => {
|
|
257
|
+
// Only the open count misses it; the visitor sees nothing.
|
|
258
|
+
});
|
|
203
259
|
}
|
|
260
|
+
if (typeof data.url === 'string' && data.url) void (0, _safeUrl.openExternalUrl)(data.url);
|
|
204
261
|
}
|
|
205
262
|
}
|
|
206
263
|
exports.PushManager = PushManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","resolveMessaging","mod","getMessaging","instance","requestPermission","registerDeviceForRemoteMessages","Promise","resolve","getToken","onTokenRefresh","cb","onNotificationOpenedApp","getInitialNotification","factory","default","PushManager","options","listenersWired","lastToken","manualToken","warnedMissingModule","active","inflight","
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_safeUrl","resolveMessaging","mod","getMessaging","instance","requestPermission","registerDeviceForRemoteMessages","Promise","resolve","getToken","onTokenRefresh","cb","onNotificationOpenedApp","getInitialNotification","factory","default","WIDGET_DOCUMENT_TYPES","Set","isWidgetPush","data","has","document_type","document_id","PushManager","options","listenersWired","lastToken","manualToken","warnedMissingModule","active","inflight","pendingTaps","handledMessageIds","constructor","client","openConversation","openPost","configure","start","pending","forEach","message","handleTap","register","enabled","messaging","console","warn","wireTapHandlers","token","error","setManualToken","manual","unregister","authToken","all","removePushToken","skipReauth","run","registerPushToken","platform","Platform","OS","bundleId","undefined","then","finally","delete","add","remoteMessage","handleNotification","catch","push","messageId","documentId","openSendPush","deliveryId","delivery_id","reportPushOpened","url","openExternalUrl","exports"],"sourceRoot":"../../../src","sources":["push/push-notifications.ts"],"mappings":";;;;;;AAeA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,QAAA,GAAAD,OAAA;AAjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA4BA;;AAUA,SAASE,gBAAgBA,CAAA,EAA2B;EAClD,IAAI;IACF,MAAMC,GAAG,GAAGH,OAAO,CAAC,kCAAkC,CAAC;;IAEvD;IACA;IACA,IAAI,OAAOG,GAAG,EAAEC,YAAY,KAAK,UAAU,EAAE;MAC3C,MAAMC,QAAQ,GAAGF,GAAG,CAACC,YAAY,CAAC,CAAC;MACnC,OAAO;QACLE,iBAAiB,EAAEA,CAAA,KAAMH,GAAG,CAACG,iBAAiB,CAACD,QAAQ,CAAC;QACxDE,+BAA+B,EAAEA,CAAA,KAC/B,OAAOJ,GAAG,CAACI,+BAA+B,KAAK,UAAU,GACrDJ,GAAG,CAACI,+BAA+B,CAACF,QAAQ,CAAC,GAC7CG,OAAO,CAACC,OAAO,CAAC,CAAC;QACvBC,QAAQ,EAAEA,CAAA,KAAMP,GAAG,CAACO,QAAQ,CAACL,QAAQ,CAAC;QACtCM,cAAc,EAAGC,EAAE,IAAKT,GAAG,CAACQ,cAAc,CAACN,QAAQ,EAAEO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