@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.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);
@@ -10574,6 +10527,25 @@ var copyIconCircleStyle = (bgRecessed) => ({
10574
10527
  justifyContent: "center",
10575
10528
  width: 48
10576
10529
  });
10530
+
10531
+ // src/deviceBiometricUnlockText.ts
10532
+ var FALLBACK = "Biometric verification";
10533
+ function getDeviceBiometricUnlockText() {
10534
+ const ua = typeof navigator !== "undefined" && typeof navigator.userAgent === "string" ? navigator.userAgent : "";
10535
+ if (/iPhone|iPad|iPod/i.test(ua)) {
10536
+ return "Face ID";
10537
+ }
10538
+ if (/Android/i.test(ua)) {
10539
+ return "Fingerprint or face unlock";
10540
+ }
10541
+ if (/Windows NT/i.test(ua)) {
10542
+ return "Windows Hello";
10543
+ }
10544
+ if (/Macintosh|Mac OS X/i.test(ua)) {
10545
+ return "Touch ID";
10546
+ }
10547
+ return FALLBACK;
10548
+ }
10577
10549
  function LoginScreen({
10578
10550
  onLoginWithPasskey,
10579
10551
  onSignupWithPasskey,
@@ -10663,8 +10635,11 @@ function PasskeyInfoCard({ tokens }) {
10663
10635
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: infoRowStyle, children: [
10664
10636
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: tokens.text, flexShrink: 0, paddingTop: 2 }, children: /* @__PURE__ */ jsxRuntime.jsx(FaceIdIcon, { size: 24 }) }),
10665
10637
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: infoRowTextStyle, children: [
10666
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: infoRowTitleStyle(tokens.text), children: "Deposit with FaceID" }),
10667
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: infoRowSubtitleStyle(tokens.text), children: "Once you try it, you won't go back" })
10638
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: infoRowTitleStyle(tokens.text), children: [
10639
+ "Deposit with ",
10640
+ getDeviceBiometricUnlockText()
10641
+ ] }),
10642
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: infoRowSubtitleStyle(tokens.text), children: "Everywhere Blink is enabled" })
10668
10643
  ] })
10669
10644
  ] })
10670
10645
  ] });
@@ -10802,25 +10777,6 @@ var avatarStyle = (tokens) => ({
10802
10777
  color: tokens.textMuted,
10803
10778
  background: "transparent"
10804
10779
  });
10805
-
10806
- // src/deviceBiometricUnlockText.ts
10807
- var FALLBACK = "Biometric verification";
10808
- function getDeviceBiometricUnlockText() {
10809
- const ua = typeof navigator !== "undefined" && typeof navigator.userAgent === "string" ? navigator.userAgent : "";
10810
- if (/iPhone|iPad|iPod/i.test(ua)) {
10811
- return "Face ID";
10812
- }
10813
- if (/Android/i.test(ua)) {
10814
- return "Fingerprint or face unlock";
10815
- }
10816
- if (/Windows NT/i.test(ua)) {
10817
- return "Windows Hello";
10818
- }
10819
- if (/Macintosh|Mac OS X/i.test(ua)) {
10820
- return "Touch ID";
10821
- }
10822
- return FALLBACK;
10823
- }
10824
10780
  var CLUSTER_LOGOS = [
10825
10781
  METAMASK_LOGO,
10826
10782
  PHANTOM_LOGO,