@robono/messaging-react-native 0.23.0 → 0.24.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 +20 -0
- package/README.md +83 -4
- package/RobonoMessagingRuntime.podspec +14 -0
- package/SBOM.spdx.json +893 -269
- package/android/build.gradle +7 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/com/robono/messaging/RobonoBackupCrypto.java +27 -0
- package/android/src/main/java/com/robono/messaging/RobonoMessagingPackage.java +11 -0
- package/app.plugin.cjs +8 -2
- package/dist/account.d.ts +4 -1
- package/dist/account.js +33 -11
- package/dist/attachment-preview.d.ts +11 -10
- package/dist/attachment-preview.js +15 -12
- package/dist/backup.d.ts +24 -0
- package/dist/backup.js +157 -0
- package/dist/brand.js +4 -4
- package/dist/bubble-design.js +5 -3
- package/dist/contact-directory.d.ts +3 -1
- package/dist/contact-directory.js +3 -3
- package/dist/conversation-details.js +1 -1
- package/dist/delivery-bar.d.ts +2 -1
- package/dist/delivery-bar.js +2 -2
- package/dist/directory-navigation.d.ts +25 -0
- package/dist/directory-navigation.js +69 -0
- package/dist/expo-backup-crypto.d.ts +3 -0
- package/dist/expo-backup-crypto.js +17 -0
- package/dist/expo-backup-passkeys.d.ts +7 -0
- package/dist/expo-backup-passkeys.js +22 -0
- package/dist/expo-backup-settings.d.ts +4 -0
- package/dist/expo-backup-settings.js +41 -0
- package/dist/expo-inbox-preferences.d.ts +3 -0
- package/dist/expo-inbox-preferences.js +9 -0
- package/dist/expo-media.js +3 -3
- package/dist/expo-messenger.js +10 -5
- package/dist/expo-reviews.d.ts +3 -0
- package/dist/expo-reviews.js +40 -0
- package/dist/expo-screen.js +58 -25
- package/dist/expo-thumbnails.d.ts +4 -0
- package/dist/expo-thumbnails.js +25 -3
- package/dist/expo.d.ts +4 -0
- package/dist/expo.js +4 -0
- package/dist/forward.js +2 -2
- package/dist/header-colors.d.ts +5 -0
- package/dist/header-colors.js +7 -0
- package/dist/inbox.d.ts +5 -2
- package/dist/inbox.js +25 -53
- package/dist/index.d.ts +8 -5
- package/dist/index.js +78 -36
- package/dist/loading-messages.d.ts +5 -0
- package/dist/loading-messages.js +10 -0
- package/dist/media-access.d.ts +8 -0
- package/dist/media-access.js +6 -1
- package/dist/popup.d.ts +6 -3
- package/dist/popup.js +6 -6
- package/dist/reviews.d.ts +15 -0
- package/dist/reviews.js +204 -0
- package/dist/scheduled.js +5 -5
- package/ios/RobonoBackupCrypto.m +30 -0
- package/package.json +15 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.24.0 — 2026-11-11
|
|
4
|
+
|
|
5
|
+
- Add password and WebAuthn PRF passkey backup protection alongside recovery keys, with a shared three-choice setup and authenticated recovery envelopes. Experimental backup APIs; native passkey provisioning and real cloud/replacement-device acceptance remain pending.
|
|
6
|
+
|
|
7
|
+
- Place expanded popup screens directly below the Messenger header, tighten content spacing, and place backup and scheduling descriptions directly under their headers. Keep compact confirmations and embedded pane boundaries.
|
|
8
|
+
|
|
9
|
+
- Keep one settings panel mounted while navigating Account, Chat backup and backup recovery pages, preventing flashes of the inbox and preserving the account scroll position.
|
|
10
|
+
|
|
11
|
+
- Add the shared Chat backup screen, native encryption and private key/preferences storage. Follow original Messenger settings styling and friendly dates. Production cloud/history wiring remains incomplete.
|
|
12
|
+
|
|
13
|
+
- Display JPEG photos up to 128 KiB through the authorized original download when no page preview grant is supplied, avoiding a separate thumbnail lookup and image re-encoding.
|
|
14
|
+
|
|
15
|
+
- Keep failed-message Retry inside the text bubble, photo/video preview, voice pill or file card, with the delivery bar confined to that surface.
|
|
16
|
+
- Stabilize conversation headers with inbox appearance on first render, a reserved activity line and a stable options column.
|
|
17
|
+
|
|
18
|
+
- Recognize source-backed history attachments as remote media: skip outgoing draft-file lookups and use authorized streaming for voice/video, consistently with other shared storage sources.
|
|
19
|
+
|
|
20
|
+
- Fit photo and video previews to their full proportions, including portrait and panoramic media. Quote, selected-attachment and shared-media previews also show the whole image.
|
|
21
|
+
- Accept message-bound Bridge history preview grants up to the existing 200 KB Bridge preview limit, avoiding a separate thumbnail authorization request when the service supplies a fresh grant.
|
|
22
|
+
|
|
3
23
|
## 0.23.0 — 2026-11-10
|
|
4
24
|
|
|
5
25
|
Add signed device Apple environment registration, shared playback callbacks, Bridge presence/privacy and foreground lifecycle integration.
|
package/README.md
CHANGED
|
@@ -637,13 +637,92 @@ recordings are preserved rather than treated as disposable files.
|
|
|
637
637
|
Choose **Design → Chat screen → Messages & bubbles** in the website customization tool. The shared preview uses the same renderer as the customer Messenger.
|
|
638
638
|
|
|
639
639
|
- **Bubble corners:** standard, square (90°), or more rounded.
|
|
640
|
-
- **Bubble style:** classic, a top tail on text/file bubbles, or
|
|
641
|
-
- **Delivery status:** a bar inside the bubble, flush with its right edge, or a circle with a checkmark.
|
|
640
|
+
- **Bubble style:** classic, a top tail on text/file bubbles (top right for sent messages, top left for received messages), or the original Messenger’s tighter sender-side bottom corner (3px, with 14px body corners). 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. Bar mode offers 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
642
|
|
|
643
|
-
A circle is empty while sending, gains a checkmark on delivery and fills with the
|
|
643
|
+
A circle is empty while sending, gains a checkmark on delivery and fills with the accent color when consumed. Viewing status is only shown when receipt permissions allow it; styling never overrides those permissions.
|
|
644
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.
|
|
645
|
+
These choices are stored in `appearance.presentation.bubbleShape`, `appearance.presentation.bubbleStyle`, and `appearance.messageStatus` (`style`, `position`, `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
646
|
|
|
647
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
648
|
|
|
649
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.
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
The standard media preview loader may expose `peek(message)` to return an already
|
|
653
|
+
authorized, memory-only preview synchronously. The Expo and browser adapters do
|
|
654
|
+
this automatically. Hosts must scope previews to the current account/conversation,
|
|
655
|
+
clear them on permission or identity changes, and keep private URLs out of persistent
|
|
656
|
+
history. Server-provided thumbnails are displayed without another image conversion.
|
|
657
|
+
|
|
658
|
+
Delivery bar colors use `appearance.messageStatus.sent`, `.delivered` and `.consumed`.
|
|
659
|
+
The website builder shows these color controls only when `messageStatus.style` is
|
|
660
|
+
`bar`; choosing `circle` hides them and preserves the bar choices for switching back.
|
|
661
|
+
Voice completion pauses playback and resets to zero; an ordinary Pause preserves the
|
|
662
|
+
position and Play resumes from it on web, iPhone and Android.
|
|
663
|
+
|
|
664
|
+
The 12px status circle can sit inside or below each outgoing bubble via
|
|
665
|
+
`appearance.messageStatus.position: 'inside' | 'below'` (default `inside`).
|
|
666
|
+
Message time independently uses `appearance.messageTime.position: 'inside' |
|
|
667
|
+
'below' | 'slide'` (default `slide`). Below-bubble metadata moves with its own
|
|
668
|
+
message during a swipe. These settings apply to web, iPhone and Android.
|
|
669
|
+
`appearance.screens.chat.messageWidth` limits long bubbles to 70, 88 or 94 percent
|
|
670
|
+
of the message area; short messages retain their natural width.
|
|
671
|
+
|
|
672
|
+
When top tails are selected, the delivery bar starts at the tail’s base with a
|
|
673
|
+
rounded cap; it does not draw a stripe through the tail.
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
## Parent message reviews
|
|
677
|
+
|
|
678
|
+
Use the shared `ExpoMessageReviewInbox` with the authenticated parent route described in the
|
|
679
|
+
[server integration instructions](../server/README.md#parent-approval-before-delivery).
|
|
680
|
+
Use the matching server and core packages, and confirm the public review API is available before enabling reviews.
|
|
681
|
+
|
|
682
|
+
```tsx
|
|
683
|
+
import {MessageReviewClient} from '@robono/messaging';
|
|
684
|
+
import {ExpoMessageReviewInbox} from '@robono/messaging-react-native/expo';
|
|
685
|
+
const reviewClient = new MessageReviewClient(async (operation, input) => {
|
|
686
|
+
const response = await fetch('/api/parent-message-reviews', {
|
|
687
|
+
method: 'POST', credentials: 'include',
|
|
688
|
+
headers: {'content-type': 'application/json'},
|
|
689
|
+
body: JSON.stringify({...input, operation}),
|
|
690
|
+
});
|
|
691
|
+
const result = await response.json();
|
|
692
|
+
if (!response.ok) throw Error(result.error?.message ?? 'Review unavailable');
|
|
693
|
+
return result;
|
|
694
|
+
});
|
|
695
|
+
// Use your authenticated transport/session and account directory on mobile.
|
|
696
|
+
<ExpoMessageReviewInbox client={reviewClient} name={userDisplayName}
|
|
697
|
+
conversationName={friendDisplayNameForConversation} />
|
|
698
|
+
```
|
|
699
|
+
|
|
700
|
+
Keep the client stable while the signed-in account is unchanged, and replace it on
|
|
701
|
+
sign-out/account changes. Names are display data, never authorization. The parent
|
|
702
|
+
sees the child, intended friend, exact words and private photo/video/voice preview.
|
|
703
|
+
Pending and completed items are separate; only a pending item offers a decision.
|
|
704
|
+
Approved items with interrupted delivery offer Retry delivery. Media is cleared
|
|
705
|
+
when the item changes or the app backgrounds. Native hosts without Expo can use
|
|
706
|
+
`MessagingReviewInbox` with their own authorized `renderMedia` callback.
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
Directory contacts now open the conversation destination immediately, without an
|
|
710
|
+
“Opening chat” dialog. The shared screen keeps the friend's name and avatar visible
|
|
711
|
+
while `onOpenDirectoryContact` resolves. No messages or composer are mounted before
|
|
712
|
+
the authorized result. Return the conversation summary directly after the permission
|
|
713
|
+
check; refreshing contact lists or the inbox must not delay that result. Back,
|
|
714
|
+
account changes and revoked directory entries cancel pending opens and discard late
|
|
715
|
+
responses. Unavailable contacts explain their status in the same conversation pane.
|
|
716
|
+
This navigation correction is local and awaiting the combined SDK release.
|
|
717
|
+
|
|
718
|
+
### Private Me chat
|
|
719
|
+
|
|
720
|
+
The shared friend list places the authenticated user's direct self conversation first and labels it **Me**. It uses the signed-in account's avatar. The conversation must come from the authorized inbox response (`selfConversation`); the UI never invents a conversation ID or substitutes another contact.
|
|
721
|
+
|
|
722
|
+
**Account → Show Me in friends** hides or restores that row without deleting messages. Complete Messenger integrations persist this preference on the current device/browser, partitioned by endpoint, namespace and user. With persistence disabled it lasts for the client session. Composable integrations can supply `MessagingInboxClient({request, userId, preferences: {read, write}})` and pass the same `inbox` to `MessagingAccountMenu` / `MessagingAccountScreen`; custom preference adapters may sync the choice through the host's authenticated account settings. This is a personal account choice, not a network appearance default.
|
|
723
|
+
|
|
724
|
+
The complete Messenger uses the inbox’s saved appearance while a conversation loads. For a standalone conversation screen, `initialAppearance` supplies that same presentation fallback until the conversation settings arrive; `appearance` remains an explicit override. Neither option grants messaging or calling permissions.
|
|
725
|
+
|
|
726
|
+
### Chat backup — unreleased
|
|
727
|
+
|
|
728
|
+
The shared backup screen follows Messenger account settings and supports backup status, account/storage actions, schedules, cellular policy, video inclusion, recovery keys and restore. Pass a `MessagingBackupClient` as `account.backup`. Core/native encryption and sample-data round trips are implemented; complete local-history storage, cloud-account integration and background jobs remain required before this is available to customers. See [the backup implementation status](../messaging/BACKUPS.md).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
require 'json'
|
|
2
|
+
package=JSON.parse(File.read(File.join(__dir__,'package.json')))
|
|
3
|
+
Pod::Spec.new do |s|
|
|
4
|
+
s.name='RobonoMessagingRuntime'
|
|
5
|
+
s.version=package['version']
|
|
6
|
+
s.summary=package['description']
|
|
7
|
+
s.homepage='https://robono.com/docs#messaging'
|
|
8
|
+
s.license={:type=>'SEE LICENSE IN LICENSE',:file=>'LICENSE'}
|
|
9
|
+
s.author='Robono'
|
|
10
|
+
s.source={:git=>'https://github.com/IMLX16/robono-sdks.git',:tag=>'messaging-react-native-v'+package['version']}
|
|
11
|
+
s.platforms={:ios=>'16.4'}
|
|
12
|
+
s.source_files='ios/*.{h,m}'
|
|
13
|
+
s.dependency 'React-Core'
|
|
14
|
+
end
|