@robono/messaging-react-native 0.20.1 → 0.20.3

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.
@@ -47,7 +47,7 @@ The standard screen accepts the same `components` and `header` options as within
47
47
 
48
48
  The supplied storage adapter prepares, uploads and screens a private staging object, then sends it through the existing Bridge delivery service. The original Bridge owns the delivered attachment. Thumbnails, the standard viewer, waveform display choices and attachment batches are retained. Stored waveforms are not deleted when hidden; the connector withholds them when the Bridge connection disallows receiving them, and the screen also respects the saved display choice.
49
49
 
50
- `onDownloadAttachment` receives an authorized temporary file. Copy it into the host's private Files destination before resolving; the SDK then removes its temporary copy. Honor its cancellation signal. `mediaViewer` controls Share, Forward, Download and Open; `linkHandling` controls URL/address taps and disabled links. These are the same shared options as ordinary Messenger, not a separate Bridge viewer.
50
+ `onDownloadAttachment` receives an authorized temporary file. Copy it into the host's private Files destination before resolving; the SDK then removes its temporary copy. Honor its cancellation signal. `mediaViewer` controls Share, Forward, Download and Delete; the viewer has no external Open action; `linkHandling` controls URL/address taps and disabled links. These are the same shared options as ordinary Messenger, not a separate Bridge viewer.
51
51
 
52
52
  A failed send retries its original `clientMessageId`. The service checks the durable Bridge send receipt before using an attachment URL. If delivery already happened, it returns the original message—or an acknowledgement if retention already removed it. If not, it obtains a fresh source URL for the same staged object. It never resends under a new ID automatically. Staging objects expire after 24 hours; if an undelivered object has expired, the user must choose the file again. Finished deliveries do not depend on staging lifetime.
53
53
 
@@ -125,3 +125,9 @@ The standard bubble shows **Cancel** while processing. Custom hosts may pass an
125
125
  Release together: migrations `20261108040000_standard_bridge_messenger.sql` , `20261108060000_bridge_language_authorization.sql` and `20261109010000_bridge_spoken_translation.sql`, functions `external-app-bridge-messenger` and `external-app-usage`, and the speech worker duration endpoint, API router `/v1/bridge/messenger`, and core/server/Expo/web packages. Verify deployment before publishing supported install versions. Website/API uploads remain owner-operated.
126
126
 
127
127
  Local verification uses synthetic accepted Bridge connections in an isolated service, through the public adapter and standard screens. iPhone and Android checks cover photo, video, document and voice upload/send/download, thumbnails, native voice playback, changing permissions and revoked access. Browser checks cover opening retained history and sending through the standard composer. Service checks cover original IDs, pagination, private access, duplicate prevention after a lost response and recovery after a missed notification. This is not a claim that a new push notification was delivered through Apple's or Google's service in this check.
128
+
129
+ ### Media startup (0.20.3 phone / 0.19.3 web)
130
+
131
+ The shared player uses short-lived original-media access returned with an authorized Bridge thumbnail. This avoids an additional request when that photo or video is opened soon afterward. The history request does not wait for this preparation. Access expires within 60 seconds (earlier when retention ends); expired access falls back to a fresh permission check. Download and Share actions still reauthorize. No URLs are saved in persistent history.
132
+
133
+ Both phone and website players pause speculative original-media downloads while a viewer is open. Already completed recent-media copies remain available, subject to their existing access window. The `preloadRecentMedia` host option remains unchanged. These optimizations require the updated shared player; the thumbnail preparation also requires the service update.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 0.20.3
2
+
3
+ - Reuse short-lived original-media access returned with Bridge thumbnails to avoid another playback authorization request. Explicit exports still reauthorize; expired or mismatched grants are rejected.
4
+ - Skip outgoing draft-file lookups for remote Bridge and managed-storage attachments.
5
+ - Pause speculative original-media transfers while a viewer is open; resume after closing and keep already completed private copies.
6
+ - Remove the dark overlay behind message options.
7
+
8
+ ## 0.20.2
9
+
10
+ - Match the original Messenger media viewer: Download, Delete, Forward, Share and Close, with no external Open action. Keep unavailable message actions disabled and preserve customer permission controls.
11
+ - Open the viewer immediately, use original-resolution photos with detailed zoom, tighten file/voice bubbles and quoted previews, and right-align attachment captions.
12
+ - Reuse bounded, authorized recent voice files for faster playback; explicit Download and Share always recheck access.
13
+ - Present the phone viewer immediately to prevent an iPhone close/reopen animation race.
14
+
1
15
  ## 0.18.0
2
16
 
3
17
  ## 0.20.1
package/README.md CHANGED
@@ -160,7 +160,7 @@ The same React Native components support iOS and Android. Keyboard handling uses
160
160
 
161
161
  ## Recording and attachments with Expo
162
162
 
163
- The optional `@robono/messaging-react-native/expo` entry supplies recording, review, voice playback and seeking, photo/video picking and preview, document selection, and private upload/download progress. Users explicitly send after review. A failed upload can retry with the same upload identity; cancelling removes the adapter's cache copy, never the original library item. Viewer copies are removed when the viewer closes. Managed voice and video play directly from private storage using native streaming. By default, `ExpoMessagingScreen` preloads up to six recent photos in the open conversation (2 MiB per file, 6 MiB total, two background transfers at a time). Custom adapters without streaming can also preload small voice/video attachments within those limits. Each transfer uses the authenticated storage adapter and counts as normal transfer usage. The cache is cleared when the app backgrounds, the conversation changes, access fails, or messages disappear; cached files require a fresh download on opening if their message has not been refreshed from the conversation history within 60 seconds. Voice/video streams and document downloads start only on tap. Set `preloadRecentMedia={false}` to keep all media transfers on demand. The recorder reserves 100 milliseconds at the duration limit for encoder padding; storage completion verifies the finished file. Recording stops when the app backgrounds or a call takes audio priority, leaving a review rather than sending automatically.
163
+ The optional `@robono/messaging-react-native/expo` entry supplies recording, review, voice playback and seeking, photo/video picking and preview, document selection, and private upload/download progress. Users explicitly send after review. A failed upload can retry with the same upload identity; cancelling removes the adapter's cache copy, never the original library item. Viewer copies are removed when the viewer closes. Managed voice and video play directly from private storage using native streaming. By default, `ExpoMessagingScreen` preloads up to six recent photos and voice clips in the open conversation (2 MiB per file, 6 MiB total, two background transfers at a time). Custom adapters without streaming can also preload small videos within those limits. Each transfer uses the authenticated storage adapter and counts as normal transfer usage. The cache is cleared when the app backgrounds, the conversation changes, access fails, or messages disappear; cached files require a fresh download on opening if their message has not been refreshed from the conversation history within 60 seconds. Cold voice/video streams and document downloads start on tap; an already authorized cached voice clip starts locally without waiting for another transfer. Explicit Download and Share always recheck current access. Set `preloadRecentMedia={false}` to keep all media transfers on demand. The recorder reserves 100 milliseconds at the duration limit for encoder padding; storage completion verifies the finished file. Recording stops when the app backgrounds or a call takes audio priority, leaving a review rather than sending automatically.
164
164
 
165
165
  Install native dependencies with your Expo project's installer so their versions match your SDK:
166
166
 
@@ -585,3 +585,7 @@ does not grant access that the user's permissions deny.
585
585
  ## Existing Bridge friends
586
586
 
587
587
  Open an already accepted external-app user ↔ Robono-user connection in the standard Messenger using the original connection ID and retained history. See [the Bridge Messenger guide](./BRIDGE-MESSENGER.md) and the included `examples/existing-bridge-chat.tsx`. This connector requires the matching core 0.13.0, server 0.32.0 and Expo 0.18.0 or web 0.17.0 release.
588
+
589
+ ### Standard media viewer
590
+
591
+ 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.