@mdbase-dev/connect 0.1.0-beta.82 → 0.1.0-beta.83

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/README.md CHANGED
@@ -193,6 +193,22 @@ await session.authorize("choose"); // any compatible collection
193
193
  await session.authorize({ collectionId }); // exact adoption/migration target
194
194
  ```
195
195
 
196
+ Web applications can keep their current page visible while Connect owns the
197
+ collection and permission decision:
198
+
199
+ ```ts
200
+ await session.authorize("choose", { presentation: "popup" });
201
+ ```
202
+
203
+ Call popup authorization directly from a click or other user gesture. The SDK
204
+ pre-opens one Connect window (browsers may show it as a tab), waits for the
205
+ registered callback to complete in that window, updates the existing session,
206
+ and closes it. If the browser blocks the popup, the same request safely falls
207
+ back to the existing full-page redirect. `presentation: "redirect"` remains
208
+ the default. Applications still run their ordinary callback handling in the
209
+ popup; Connect remains the sole owner of compatible collection choice and exact
210
+ permission review.
211
+
196
212
  Collection IDs are opaque non-secret locators that may appear in browser
197
213
  history and logs. Grants remain the authorization boundary, and names are
198
214
  display text that may change.
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "file": "mdbase-connect.min.js",
3
- "integrity": "sha384-2NXwGD96iZvxt5iZ6vfV4ZTuoY3PG7RMPOn+wmXEq+K+i06SN/u0vdHtOUb+Mj2p"
3
+ "integrity": "sha384-yqwzqr0WMJUcmiTnwJyLNuevsaXVJcM5YLftkDrVxhNXp+39bpKQFo/GFL7iXP8T"
4
4
  }