@robono/messaging-react-native 0.14.0 → 0.16.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 CHANGED
@@ -1,3 +1,12 @@
1
+ ## 0.15.0
2
+
3
+ ## 0.16.0
4
+
5
+ - Shared friends/chat screen and menu customization, fixed 145 × 38 branding space with right-aligned fitted logo or configurable text.
6
+ - Correct logo placement and refreshed inbox menu appearance without restarting.
7
+
8
+ Add a shared authorized contact directory to the complete Messenger. Saved contacts can appear before a conversation exists, with availability explanations, search, duplicate suppression and server-authorized opening. Directory removal, navigation and account changes cancel pending opens.
9
+
1
10
  ## 0.14.0
2
11
 
3
12
  Complete standard Messenger host controls, consistent incoming voice colors, bounded preview retry, private document preview, conversation selector, language policy and automatic embedded keyboard placement and multiline composer sizing.
package/README.md CHANGED
@@ -516,3 +516,52 @@ starters and Robono Messenger. Pass `error`, `onRetry`, optional `onSignOut`,
516
516
  `appearance`, and translated `labels`. Account actions appear only on failure,
517
517
  never during normal connection startup. The hosted connection selects Robono's
518
518
  approved direct transport automatically; no extra phone setup is required.
519
+
520
+
521
+ ## Contacts before a conversation exists
522
+
523
+ The complete Messenger accepts `directory` and `onOpenDirectoryContact`. The host
524
+ supplies its authenticated address book; Robono does not invent contacts or
525
+ import permissions from another network. This works in `ExpoMessenger`,
526
+ `WebMessenger`, and `mountRobonoMessenger`.
527
+
528
+ Each directory entry has `id`, `name`, `status`, `detail`, and `available`.
529
+ Optional `contactId`, `conversationId`, and `avatarUrl` identify an existing chat
530
+ and its avatar. Entries already represented by a loaded conversation are hidden
531
+ to avoid duplicate rows. Search includes the directory. Unavailable entries show
532
+ the supplied explanation without opening a composer or making a send request.
533
+
534
+ For an available entry, `onOpenDirectoryContact(entry, signal)` must ask your
535
+ server to recheck membership/blocks and create or find the conversation. Return
536
+ its `ConversationSummary`. Repeated opens should return the same conversation.
537
+ Respect `signal.aborted`; late responses are discarded when the directory entry
538
+ is removed, permission changes, the popup closes, or the account is switched.
539
+ This is not a permission grant: Robono's regular server checks still apply.
540
+
541
+ On web, call `messenger.updateDirectory(nextEntries)` to update availability
542
+ without resetting the current chat. React hosts update the `directory` prop.
543
+ A directory does not copy historical messages or transfer acceptance of a
544
+ connection from another network. Keep those migration decisions on your server.
545
+
546
+ ## Friends, chat and menu appearance
547
+
548
+ Use **Features & preview → Appearance** to choose Name & logo, Friends screen,
549
+ Friends menu, Chat screen, or Chat menu. The preview uses these shared SDK screens,
550
+ including for Robono Messenger. Uploading a logo changes the draft; **Save changes →
551
+ Apply to live app** publishes it (or Apply to test app for a test connection).
552
+ Online inboxes refresh settings automatically and when reopened. No restart or
553
+ reinstall is needed for configuration changes; apps must first install this SDK update.
554
+
555
+ The friends header reserves **145 × 38** logical pixels/points for either the logo
556
+ or app name. Logos keep their proportions, fit inside this box, and align to its
557
+ right edge. Text uses the same box and supports device/serif/monospace fonts, size,
558
+ weight and color. The chat header identifies the contact/group; it does not repeat
559
+ the app logo. Uploaded logos keep their own colors.
560
+
561
+ The `MessagingAppearance.screens` options customize friends-list colors, avatars,
562
+ last-message previews, branding text and direct/group header colors. `menus.friends`
563
+ and `menus.chat` set menu background, text/icon colors and optional entries. These
564
+ are display choices, never permission grants: entries still require the feature and
565
+ user authorization. Account access and permitted Block/Report actions stay available.
566
+ A host-provided `appearance` overrides server appearance; omit it to follow saved
567
+ website settings. A host-provided `companyName` overrides the configured app name.