@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.js CHANGED
@@ -6321,61 +6321,14 @@ function useAuthorizationOrchestrator(deps) {
6321
6321
  if (cachedBatchSupport == null) {
6322
6322
  cachedBatchSupport = await authExecutor.canBatch();
6323
6323
  }
6324
- const batchSupported = cachedBatchSupport;
6324
+ const batchSupported = false;
6325
6325
  console.info("[blink-sdk][orchestrator] Batch evaluation complete.", {
6326
6326
  ownerSessionId,
6327
6327
  batchSupported,
6328
6328
  actionIds: batchable.map((candidate) => candidate.id),
6329
6329
  actionTypes: batchable.map((candidate) => candidate.type)
6330
6330
  });
6331
- if (batchSupported) {
6332
- const readyBatchable = await waitForBatchableActionsReady({
6333
- apiBaseUrl,
6334
- batchable,
6335
- sessions,
6336
- actionSessionMap
6337
- });
6338
- const batchInputs = readyBatchable.map((candidate) => ({
6339
- action: candidate,
6340
- sessionId: actionSessionMap.get(candidate.id) ?? sessionId
6341
- }));
6342
- const batchWalletConnectRuntimeKey = getWalletConnectRuntimeKeyForAction(
6343
- batchInputs[0]?.action,
6344
- batchInputs[0]?.sessionId ?? ownerSessionId,
6345
- sessions
6346
- );
6347
- const paymasterUrl = `${apiBaseUrl}/v1/paymaster`;
6348
- const batchResult = await authExecutor.executeBatch(batchInputs, {
6349
- paymasterUrl,
6350
- ...batchWalletConnectRuntimeKey ? { walletConnectRuntimeKey: batchWalletConnectRuntimeKey } : {},
6351
- onWalletConnectDisplayUri: options?.onWalletConnectDisplayUri
6352
- });
6353
- for (const { action: batchedAction, result: result2 } of batchResult.actionResults) {
6354
- completedIds.add(batchedAction.id);
6355
- authExecutor.addResult(result2);
6356
- if (isSubmittedApprovePermit2Result(batchedAction, result2)) {
6357
- submittedApprovePermit2ActionIdsRef.current.add(batchedAction.id);
6358
- }
6359
- if (isSubmittedSignPermit2Result(batchedAction, result2)) {
6360
- submittedSignPermit2ActionIdsRef.current.add(batchedAction.id);
6361
- }
6362
- const batchedOwnerSessionId = actionSessionMap.get(batchedAction.id) ?? ownerSessionId;
6363
- const reportedSession2 = await reportActionCompletionWithLogging(
6364
- apiBaseUrl,
6365
- batchedAction,
6366
- batchedOwnerSessionId,
6367
- result2
6368
- );
6369
- updateTrackedSession(sessions, batchedOwnerSessionId, reportedSession2, actionSessionMap);
6370
- }
6371
- mergedPending = await waitForPendingActions({
6372
- apiBaseUrl,
6373
- sessions,
6374
- completedIds,
6375
- actionSessionMap
6376
- });
6377
- continue;
6378
- }
6331
+ if (batchSupported) ;
6379
6332
  }
6380
6333
  const approvePermit2WasSubmitted = action.type === "APPROVE_PERMIT2" && submittedApprovePermit2ActionIdsRef.current.has(action.id);
6381
6334
  const signPermit2WasSubmitted = action.type === "SIGN_PERMIT2" && submittedSignPermit2ActionIdsRef.current.has(action.id);