@swype-org/react-sdk 0.2.309 → 0.2.311

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/dist/index.cjs CHANGED
@@ -6345,61 +6345,14 @@ function useAuthorizationOrchestrator(deps) {
6345
6345
  if (cachedBatchSupport == null) {
6346
6346
  cachedBatchSupport = await authExecutor.canBatch();
6347
6347
  }
6348
- const batchSupported = cachedBatchSupport;
6348
+ const batchSupported = false;
6349
6349
  console.info("[blink-sdk][orchestrator] Batch evaluation complete.", {
6350
6350
  ownerSessionId,
6351
6351
  batchSupported,
6352
6352
  actionIds: batchable.map((candidate) => candidate.id),
6353
6353
  actionTypes: batchable.map((candidate) => candidate.type)
6354
6354
  });
6355
- if (batchSupported) {
6356
- const readyBatchable = await waitForBatchableActionsReady({
6357
- apiBaseUrl,
6358
- batchable,
6359
- sessions,
6360
- actionSessionMap
6361
- });
6362
- const batchInputs = readyBatchable.map((candidate) => ({
6363
- action: candidate,
6364
- sessionId: actionSessionMap.get(candidate.id) ?? sessionId
6365
- }));
6366
- const batchWalletConnectRuntimeKey = getWalletConnectRuntimeKeyForAction(
6367
- batchInputs[0]?.action,
6368
- batchInputs[0]?.sessionId ?? ownerSessionId,
6369
- sessions
6370
- );
6371
- const paymasterUrl = `${apiBaseUrl}/v1/paymaster`;
6372
- const batchResult = await authExecutor.executeBatch(batchInputs, {
6373
- paymasterUrl,
6374
- ...batchWalletConnectRuntimeKey ? { walletConnectRuntimeKey: batchWalletConnectRuntimeKey } : {},
6375
- onWalletConnectDisplayUri: options?.onWalletConnectDisplayUri
6376
- });
6377
- for (const { action: batchedAction, result: result2 } of batchResult.actionResults) {
6378
- completedIds.add(batchedAction.id);
6379
- authExecutor.addResult(result2);
6380
- if (isSubmittedApprovePermit2Result(batchedAction, result2)) {
6381
- submittedApprovePermit2ActionIdsRef.current.add(batchedAction.id);
6382
- }
6383
- if (isSubmittedSignPermit2Result(batchedAction, result2)) {
6384
- submittedSignPermit2ActionIdsRef.current.add(batchedAction.id);
6385
- }
6386
- const batchedOwnerSessionId = actionSessionMap.get(batchedAction.id) ?? ownerSessionId;
6387
- const reportedSession2 = await reportActionCompletionWithLogging(
6388
- apiBaseUrl,
6389
- batchedAction,
6390
- batchedOwnerSessionId,
6391
- result2
6392
- );
6393
- updateTrackedSession(sessions, batchedOwnerSessionId, reportedSession2, actionSessionMap);
6394
- }
6395
- mergedPending = await waitForPendingActions({
6396
- apiBaseUrl,
6397
- sessions,
6398
- completedIds,
6399
- actionSessionMap
6400
- });
6401
- continue;
6402
- }
6355
+ if (batchSupported) ;
6403
6356
  }
6404
6357
  const approvePermit2WasSubmitted = action.type === "APPROVE_PERMIT2" && submittedApprovePermit2ActionIdsRef.current.has(action.id);
6405
6358
  const signPermit2WasSubmitted = action.type === "SIGN_PERMIT2" && submittedSignPermit2ActionIdsRef.current.has(action.id);