@robono/messaging-react-native 0.20.3 → 0.22.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 +5 -1
- package/README.md +58 -0
- package/SBOM.spdx.json +478 -238
- package/app.plugin.cjs +9 -3
- package/dist/bubble-design.d.ts +12 -0
- package/dist/bubble-design.js +11 -0
- package/dist/call-message.js +39 -9
- package/dist/delivery-bar.d.ts +7 -0
- package/dist/delivery-bar.js +19 -0
- package/dist/disk-cache.d.ts +14 -0
- package/dist/disk-cache.js +15 -0
- package/dist/expo-cache.d.ts +20 -0
- package/dist/expo-cache.js +111 -0
- package/dist/expo-calling.d.ts +1 -1
- package/dist/expo-calling.js +1 -1
- package/dist/expo-media.js +7 -22
- package/dist/expo-messenger.js +12 -3
- package/dist/expo-notification-cleanup.d.ts +7 -0
- package/dist/expo-notification-cleanup.js +96 -0
- package/dist/expo-notifications.d.ts +1 -0
- package/dist/expo-notifications.js +38 -8
- package/dist/expo-screen.js +16 -8
- package/dist/expo-thumbnails.d.ts +4 -0
- package/dist/expo-thumbnails.js +3 -2
- package/dist/expo.d.ts +1 -0
- package/dist/expo.js +1 -0
- package/dist/inbox.d.ts +2 -1
- package/dist/inbox.js +4 -3
- package/dist/index.js +21 -20
- package/dist/media-controller.d.ts +2 -1
- package/dist/media-controller.js +8 -8
- package/dist/media-ui.d.ts +4 -2
- package/dist/media-ui.js +13 -13
- package/dist/message-order.d.ts +2 -2
- package/dist/message-order.js +2 -2
- package/dist/preview-cache.d.ts +1 -0
- package/dist/preview-cache.js +2 -0
- package/dist/voice-composer.js +2 -1
- package/dist/voice-waveform.d.ts +2 -0
- package/dist/voice-waveform.js +9 -0
- package/package.json +12 -6
package/CHANGELOG.md
CHANGED
|
@@ -24,7 +24,11 @@
|
|
|
24
24
|
|
|
25
25
|
Adds the standard Expo Bridge connector, original-message read receipts, retained history and shared attachment handling.
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## 0.21.0
|
|
28
|
+
|
|
29
|
+
- Match photo tap-to-hide controls, display cached previews while originals load, preserve voice-player shape with captions, reset completed waveform progress, and tighten message status curves.
|
|
30
|
+
|
|
31
|
+
- Add configurable maintenance for SDK-owned disposable disk files, preserving active media and draft files. Expose configureExpoMessagingCache and maintainExpoMessagingCache through the Expo entry point.
|
|
28
32
|
|
|
29
33
|
- Coalesce queued draft updates into one durable write while preserving reads, sends, clears and storage-error handling.
|
|
30
34
|
|
package/README.md
CHANGED
|
@@ -298,6 +298,8 @@ The complete `createExpoMessenger` flow connects unanswered-call messages automa
|
|
|
298
298
|
|
|
299
299
|
`UnansweredCallMessage` is also exported separately for a custom composer. Place it inside `MessagingProvider` and supply your existing `pickAttachment` adapter. The adapter must support recording, review and private upload. Eligibility comes from your authenticated backend, and sending rechecks permissions. Recording is optional and starts only when the caller chooses it. An ordinary message is left in the chat, with normal history, retry and media rules.
|
|
300
300
|
|
|
301
|
+
Enable the offer in the website’s Calling options. A missed voice call can offer a voice message; a missed video call can offer a video message (or voice if selected). The caller records, plays the draft, and can **Record again**, **Cancel**, or **Send message**. Camera capture uses the phone’s system recorder; the shared Messenger supplies the final review and Send actions. Recording and review do not upload the file. Upload starts only after Send; failed uploads stay in the normal outgoing-message retry flow. This is a new chat message, not a recording of the call or a separate voicemail inbox.
|
|
302
|
+
|
|
301
303
|
### Blocking, reporting, reactions and language tools
|
|
302
304
|
|
|
303
305
|
The conversation header’s three-dot menu includes Search this chat, plus Block/Unblock and Report when the authenticated backend advertises safety support. Saved belongs to the account and is in the separate Messages menu, never under a contact’s name. Hold a received bubble to report that message. `onContactOptions` optionally replaces the supplied contact menu with your existing safety flow. The exported `MessagingSafety` component can also be composed into your screen.
|
|
@@ -414,6 +416,9 @@ it starts the available internet call directly. Groups never show a carrier choi
|
|
|
414
416
|
|
|
415
417
|
## Managed notification lifecycle
|
|
416
418
|
|
|
419
|
+
For account-wide ringing, answer/decline behavior, unread synchronization and removal of delivered alerts, see [multi-device behavior](../server/NOTIFICATIONS.md#one-account-on-multiple-devices). The customer supplies its own Apple/Google app credentials once; Robono handles managed device registration, delivery and cleanup. Native background cleanup is best effort with reconciliation on reopening.
|
|
420
|
+
|
|
421
|
+
|
|
417
422
|
Server 0.18.0 and mobile 0.4.0 remove the customer notification database and worker. Upload your Apple/Google app credentials once under Your app → Message notifications. Include `notifications.register-device` in your server’s authenticated-user permission policy. Spread the complete connection returned by `createExpoMessenger` into `ExpoMessenger`; this includes its notification connection and Account action. Pass `notifications:false` when your app owns notifications instead.
|
|
418
423
|
|
|
419
424
|
Always await `messenger.signOut()` before ending your host login session, using a finally block to finish host sign-out even if the network is unavailable. The host still owns its global notification presentation handler; compose it with `withMessagingNotificationPresentation` if needed. Custom screens can continue using the separate `./expo-notifications` connector. Apple/Google permissions and a real device are required to prove background delivery; signing in and seeing a chat is not enough.
|
|
@@ -589,3 +594,56 @@ Open an already accepted external-app user ↔ Robono-user connection in the sta
|
|
|
589
594
|
### Standard media viewer
|
|
590
595
|
|
|
591
596
|
Photos and videos use the same viewer: Download, Delete, Forward, Share and Close, subject to customer permissions. There is no external-player Open action. Photos use original files, support pinch/pan and tap-to-expand; video uses the native playback controls, seeking and fullscreen. Close remains available on expanded photos.
|
|
597
|
+
|
|
598
|
+
## Disposable storage maintenance (0.21.0)
|
|
599
|
+
|
|
600
|
+
Call once at app startup, outside the render path:
|
|
601
|
+
|
|
602
|
+
```ts
|
|
603
|
+
import {configureExpoMessagingCache, maintainExpoMessagingCache}
|
|
604
|
+
from '@robono/messaging-react-native/expo';
|
|
605
|
+
configureExpoMessagingCache({
|
|
606
|
+
maxBytes: 150 * 1024 * 1024,
|
|
607
|
+
maxAgeMs: 24 * 60 * 60 * 1000,
|
|
608
|
+
minFreeBytes: 100 * 1024 * 1024,
|
|
609
|
+
});
|
|
610
|
+
await maintainExpoMessagingCache();
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
The SDK also checks at first allocation, periodically before new files, and when
|
|
614
|
+
space is low before a download. `requiredBytes` requests room for an upcoming
|
|
615
|
+
transfer. Limits are soft: active transfers, playback, viewers, and draft copies
|
|
616
|
+
are protected even above the target. `limitReached` and `protectedBytes` explain
|
|
617
|
+
why space could not be reclaimed. Never delete an active file to enforce a cap.
|
|
618
|
+
|
|
619
|
+
On account changes, close/dispose the old Messenger and call
|
|
620
|
+
`maintainExpoMessagingCache({clearUnused: true})`. Cleanup may run with Messenger
|
|
621
|
+
open: live files remain leased. Persistent outbox drafts and saved messages live
|
|
622
|
+
outside this disposable cache; unfinished selected/recorded copies have persistent
|
|
623
|
+
draft markers and survive crash cleanup. Explicit downloads in the host's Files
|
|
624
|
+
or photo library are outside its scope. The cache is app-wide, not a permission
|
|
625
|
+
cache: clearing files does not grant or revoke access.
|
|
626
|
+
|
|
627
|
+
Only SDK-owned `robono-messaging` files are swept. Streaming video uses
|
|
628
|
+
`useCaching: false`, and audio does not request download-before-playback. Returned
|
|
629
|
+
native thumbnail temporaries are deleted when their job finishes. Shared Expo/OS
|
|
630
|
+
cache directories are not swept: a native operation that crashes before returning
|
|
631
|
+
its temporary filename cannot safely be attributed to Robono. Unfinished native
|
|
632
|
+
recordings are preserved rather than treated as disposable files.
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
### Bubble appearance and delivery status
|
|
636
|
+
|
|
637
|
+
Choose **Design → Chat screen → Messages & bubbles** in the website customization tool. The shared preview uses the same renderer as the customer Messenger.
|
|
638
|
+
|
|
639
|
+
- **Bubble corners:** standard, square (90°), or more rounded.
|
|
640
|
+
- **Bubble style:** classic, a top tail on text/file bubbles, or a more rounded sender-side bottom corner. Voice messages keep their player shape; photos and videos fill their bubble without a padded outer background.
|
|
641
|
+
- **Delivery status:** a bar inside the bubble, flush with its right edge, or a circle with a checkmark. Choose the sent, delivered and seen/heard/watched colors. Each outgoing item has its own indicator, including attachments sent together. Incoming messages have no delivery indicator.
|
|
642
|
+
|
|
643
|
+
A circle is empty while sending, gains a checkmark on delivery and fills with the selected color when consumed. Viewing status is only shown when receipt permissions allow it; styling never overrides those permissions.
|
|
644
|
+
|
|
645
|
+
These choices are stored in `appearance.presentation.bubbleShape`, `appearance.presentation.bubbleStyle`, and `appearance.messageStatus` (`style`, `sent`, `delivered`, `consumed`). Existing designs default to the inside edge bar and classic bubbles. Customers need a package version containing these controls before saved designs can render them.
|
|
646
|
+
|
|
647
|
+
The website's **Calling** settings control the optional message offer after an unanswered call. The shared panel presents one recording preview, Record again, Cancel and an explicit Send action. Drafts are not uploaded until Send.
|
|
648
|
+
|
|
649
|
+
The website’s **Design → Chat screen → Writing area** offers an optional **Message field border** and its color. The thin outline follows the field corners without changing its size. These are `appearance.composer.fieldBorder` and `fieldBorderColor`; existing designs remain borderless.
|