@api-client/ui 0.5.54 → 0.5.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@api-client/ui",
3
- "version": "0.5.54",
3
+ "version": "0.5.55",
4
4
  "description": "Internal UI component library for the API Client ecosystem.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "build/src/index.js",
@@ -373,7 +373,9 @@ export class ActivityManager {
373
373
  await target.activity.onPause()
374
374
  target.activity.lifecycle = ActivityLifecycle.Paused
375
375
  }
376
- const intentCopy = structuredClone(intent)
376
+ // Let's create a shallow copy of the intent. We can disregard the ByReference flag here,
377
+ // as we override the data with the result data.
378
+ const intentCopy = { ...intent }
377
379
  intentCopy.data = activity.getResult()
378
380
  await target.activity.onActivityResult(requestCode, activity.resultCode, intentCopy)
379
381
  }