@robono/messaging-react-native 0.13.0 → 0.15.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/README.md +26 -0
  3. package/SBOM.spdx.json +638 -230
  4. package/dist/attachment-preview.d.ts +18 -0
  5. package/dist/attachment-preview.js +27 -0
  6. package/dist/composer-input.d.ts +5 -0
  7. package/dist/composer-input.js +13 -0
  8. package/dist/contact-directory.d.ts +26 -0
  9. package/dist/contact-directory.js +16 -0
  10. package/dist/conversation-selector.d.ts +9 -0
  11. package/dist/conversation-selector.js +19 -0
  12. package/dist/expo-document.d.ts +7 -0
  13. package/dist/expo-document.js +50 -0
  14. package/dist/expo-media.js +5 -1
  15. package/dist/expo-messenger.d.ts +4 -1
  16. package/dist/expo-messenger.js +1 -1
  17. package/dist/expo-screen.d.ts +5 -1
  18. package/dist/expo-screen.js +67 -31
  19. package/dist/expo-thumbnails.d.ts +3 -1
  20. package/dist/expo-thumbnails.js +3 -1
  21. package/dist/expo.d.ts +1 -0
  22. package/dist/inbox-search.d.ts +2 -1
  23. package/dist/inbox-search.js +2 -2
  24. package/dist/inbox.d.ts +3 -2
  25. package/dist/inbox.js +52 -3
  26. package/dist/index.d.ts +23 -4
  27. package/dist/index.js +88 -41
  28. package/dist/keyboard-container.d.ts +10 -0
  29. package/dist/keyboard-container.js +18 -0
  30. package/dist/media-controller.d.ts +1 -0
  31. package/dist/media-controller.js +3 -2
  32. package/dist/media-ui.d.ts +4 -1
  33. package/dist/media-ui.js +5 -5
  34. package/dist/pdf-preview.d.ts +2 -0
  35. package/dist/pdf-preview.js +7 -0
  36. package/dist/pdf-renderer.generated.d.ts +1 -0
  37. package/dist/pdf-renderer.generated.js +2 -0
  38. package/dist/preview-cache.d.ts +1 -0
  39. package/dist/preview-cache.js +2 -0
  40. package/dist/translation-settings.js +5 -3
  41. package/licenses/pdfjs-LICENSE +177 -0
  42. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,10 +1,20 @@
1
- ## 0.12.0 — unpublished candidate
1
+ ## 0.15.0
2
+
3
+ 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.
4
+
5
+ ## 0.14.0
6
+
7
+ 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.
8
+
9
+ Short-lived, message-scoped thumbnail grants avoid a second authorization trip; expired grants use the authenticated fallback and are excluded from offline history.
2
10
 
3
11
  ## 0.13.0
4
12
 
5
13
  - Share the Messenger sign-in, country/phone controls and loading/recovery screen with website integrations.
6
14
  - Require the messaging core update for direct hosted routing and clearer connection errors.
7
15
 
16
+ ## 0.12.0
17
+
8
18
 
9
19
  Keep Android recording alive through microphone permission dialogs; process two bounded thumbnails concurrently with permission-safe reuse. Add authenticated host downloads and host-controlled links/addresses. Keep Expo 55 audio handling compatible. Add self-chat and consumer integration hooks, stable forwarded-message delivery states and group-invitation eligibility.
10
20
 
package/README.md CHANGED
@@ -516,3 +516,29 @@ 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.