@swype-org/react-sdk 0.2.309 → 0.2.312

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);
@@ -10550,6 +10503,25 @@ var copyIconCircleStyle = (bgRecessed) => ({
10550
10503
  justifyContent: "center",
10551
10504
  width: 48
10552
10505
  });
10506
+
10507
+ // src/deviceBiometricUnlockText.ts
10508
+ var FALLBACK = "Biometric verification";
10509
+ function getDeviceBiometricUnlockText() {
10510
+ const ua = typeof navigator !== "undefined" && typeof navigator.userAgent === "string" ? navigator.userAgent : "";
10511
+ if (/iPhone|iPad|iPod/i.test(ua)) {
10512
+ return "Face ID";
10513
+ }
10514
+ if (/Android/i.test(ua)) {
10515
+ return "Fingerprint or face unlock";
10516
+ }
10517
+ if (/Windows NT/i.test(ua)) {
10518
+ return "Windows Hello";
10519
+ }
10520
+ if (/Macintosh|Mac OS X/i.test(ua)) {
10521
+ return "Touch ID";
10522
+ }
10523
+ return FALLBACK;
10524
+ }
10553
10525
  function LoginScreen({
10554
10526
  onLoginWithPasskey,
10555
10527
  onSignupWithPasskey,
@@ -10639,8 +10611,11 @@ function PasskeyInfoCard({ tokens }) {
10639
10611
  /* @__PURE__ */ jsxs("div", { style: infoRowStyle, children: [
10640
10612
  /* @__PURE__ */ jsx("div", { style: { color: tokens.text, flexShrink: 0, paddingTop: 2 }, children: /* @__PURE__ */ jsx(FaceIdIcon, { size: 24 }) }),
10641
10613
  /* @__PURE__ */ jsxs("div", { style: infoRowTextStyle, children: [
10642
- /* @__PURE__ */ jsx("div", { style: infoRowTitleStyle(tokens.text), children: "Deposit with FaceID" }),
10643
- /* @__PURE__ */ jsx("div", { style: infoRowSubtitleStyle(tokens.text), children: "Once you try it, you won't go back" })
10614
+ /* @__PURE__ */ jsxs("div", { style: infoRowTitleStyle(tokens.text), children: [
10615
+ "Deposit with ",
10616
+ getDeviceBiometricUnlockText()
10617
+ ] }),
10618
+ /* @__PURE__ */ jsx("div", { style: infoRowSubtitleStyle(tokens.text), children: "Everywhere Blink is enabled" })
10644
10619
  ] })
10645
10620
  ] })
10646
10621
  ] });
@@ -10778,25 +10753,6 @@ var avatarStyle = (tokens) => ({
10778
10753
  color: tokens.textMuted,
10779
10754
  background: "transparent"
10780
10755
  });
10781
-
10782
- // src/deviceBiometricUnlockText.ts
10783
- var FALLBACK = "Biometric verification";
10784
- function getDeviceBiometricUnlockText() {
10785
- const ua = typeof navigator !== "undefined" && typeof navigator.userAgent === "string" ? navigator.userAgent : "";
10786
- if (/iPhone|iPad|iPod/i.test(ua)) {
10787
- return "Face ID";
10788
- }
10789
- if (/Android/i.test(ua)) {
10790
- return "Fingerprint or face unlock";
10791
- }
10792
- if (/Windows NT/i.test(ua)) {
10793
- return "Windows Hello";
10794
- }
10795
- if (/Macintosh|Mac OS X/i.test(ua)) {
10796
- return "Touch ID";
10797
- }
10798
- return FALLBACK;
10799
- }
10800
10756
  var CLUSTER_LOGOS = [
10801
10757
  METAMASK_LOGO,
10802
10758
  PHANTOM_LOGO,