@seams/wallet 0.6.0 → 0.6.1
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/.build-inputs.sha256 +1 -1
- package/dist/esm/SeamsWeb/SeamsWeb.js +1 -0
- package/dist/esm/SeamsWeb/operations/registration/registration.js +170 -33
- package/dist/esm/SeamsWeb/operations/registration/registrationTiming.js +33 -2
- package/dist/esm/SeamsWeb/signingSurface/BrowserSigningSurface.js +3 -0
- package/dist/esm/SeamsWeb/walletIframe/client/overlay/overlay-controller.js +63 -10
- package/dist/esm/core/rpcClients/relayer/walletRegistration.js +88 -4
- package/dist/esm/core/signingEngine/session/passkey/prfCache.js +24 -4
- package/dist/esm/core/signingEngine/uiConfirm/PasskeyMpcSessionDurableState.js +5 -3
- package/dist/esm/core/signingEngine/uiConfirm/PasskeyMpcSessionManager.js +40 -3
- package/dist/esm/core/signingEngine/uiConfirm/ui/preact/TransactionReceipt.js +31 -35
- package/dist/esm/core/signingEngine/uiConfirm/ui/preact/mountConfirmationSurface.js +64 -10
- package/dist/esm/core/signingEngine/walletCustody/ceremonyDriver.js +1 -1
- package/dist/esm/react/SeamsWeb/SeamsWeb.js +1 -0
- package/dist/esm/react/SeamsWeb/operations/registration/registration.js +170 -33
- package/dist/esm/react/SeamsWeb/operations/registration/registrationTiming.js +33 -2
- package/dist/esm/react/SeamsWeb/signingSurface/BrowserSigningSurface.js +3 -0
- package/dist/esm/react/SeamsWeb/walletIframe/client/overlay/overlay-controller.js +63 -10
- package/dist/esm/react/core/rpcClients/relayer/walletRegistration.js +88 -4
- package/dist/esm/react/core/signingEngine/session/passkey/prfCache.js +24 -4
- package/dist/esm/react/core/signingEngine/uiConfirm/PasskeyMpcSessionDurableState.js +5 -3
- package/dist/esm/react/core/signingEngine/uiConfirm/PasskeyMpcSessionManager.js +40 -3
- package/dist/esm/react/core/signingEngine/uiConfirm/ui/preact/TransactionReceipt.js +31 -35
- package/dist/esm/react/core/signingEngine/uiConfirm/ui/preact/mountConfirmationSurface.js +64 -10
- package/dist/esm/react/core/signingEngine/walletCustody/ceremonyDriver.js +1 -1
- package/dist/esm/react/shared-ts/src/utils/routerAbEd25519Yao.js +13 -1
- package/dist/esm/sdk/{adapters-Dgy69gf0.js → adapters-LgE4nnos.js} +95 -45
- package/dist/esm/sdk/{defaultConfigs-DJCLCrg9.js → defaultConfigs-CyNOW4Sy.js} +1 -1
- package/dist/{public/sdk/ecdsaCapabilityManifest-DA_fklIs.js → esm/sdk/ecdsaCapabilityManifest-C8itxV9S.js} +1 -1
- package/dist/{public/sdk/ecdsaPresignLifecycle-D_KCktCj.js → esm/sdk/ecdsaPresignLifecycle-CnSnzoRJ.js} +13 -1
- package/dist/esm/sdk/{ed25519SeedMaterial-0VmS6K9P.js → ed25519SeedMaterial-Cghz8-XB.js} +2 -2
- package/dist/esm/sdk/{exactSessionState-C2aAv_ED.js → exactSessionState-Bt0HforB.js} +64 -11
- package/dist/esm/sdk/{export-viewer-host-NhjFdpm-.js → export-viewer-host-B3K81QGA.js} +1 -1
- package/dist/esm/sdk/{host-DACTruOj.js → host-Y_xmIzPO.js} +2 -2
- package/dist/esm/sdk/{localOnly-DTNq69fJ.js → localOnly-B5TYHJiq.js} +2 -2
- package/dist/{public/sdk/nearEd25519YaoMaterialActivation-4AuGG2DG.js → esm/sdk/nearEd25519YaoMaterialActivation-BLxVE6E5.js} +89 -5
- package/dist/esm/sdk/{nearEd25519YaoSigningPreparation-jiGcQylO.js → nearEd25519YaoSigningPreparation-DX6xG-IW.js} +1 -1
- package/dist/esm/sdk/{prfCache-Dwwauj4v.js → prfCache-CgAr-VEU.js} +24 -4
- package/dist/{public/sdk/recovery-entrypoint-CFTX6PFZ.js → esm/sdk/recovery-entrypoint-D39R1avB.js} +3 -3
- package/dist/{public/sdk/registration-CuP1WmQu.js → esm/sdk/registration-BtPLgKHk.js} +1 -1
- package/dist/esm/sdk/{registration-D8nYJKec.js → registration-D-istkMZ.js} +253 -38
- package/dist/esm/sdk/{registrationPreparationPreload-DDe0sbZi.js → registrationPreparationPreload-CvnlDCVn.js} +2 -2
- package/dist/{public/sdk/router-DeX_cJ2f.js → esm/sdk/router-CeFS9SgT.js} +3 -3
- package/dist/{public/sdk/routerAbNormalSigning-BGpRKRAj.js → esm/sdk/routerAbNormalSigning-DktZKnf1.js} +1 -1
- package/dist/{public/sdk/runtime-auth-Ch00YcH5.js → esm/sdk/runtime-auth-B7z1ANNp.js} +8 -8
- package/dist/esm/sdk/{runtime-device-link-CEhVZYAw.js → runtime-device-link-B8HGDakg.js} +4 -4
- package/dist/esm/sdk/{runtime-ecdsa-tempo-B-qMRrmx.js → runtime-ecdsa-tempo-DKdS5-us.js} +5 -5
- package/dist/{public/sdk/runtime-email-otp-giyMPib8.js → esm/sdk/runtime-email-otp-D5bxhdyG.js} +4 -4
- package/dist/{public/sdk/runtime-export-CV-6G1Oy.js → esm/sdk/runtime-export--hvNrx8l.js} +4 -4
- package/dist/{public/sdk/runtime-near-DoDcS88O.js → esm/sdk/runtime-near-CEexHoug.js} +4 -4
- package/dist/{public/sdk/runtime-preferences-Canyenle.js → esm/sdk/runtime-preferences-BiqPp1lV.js} +4 -4
- package/dist/esm/sdk/{runtime-recovery-lWyILD1g.js → runtime-recovery-BYu1gDq_.js} +4 -4
- package/dist/esm/sdk/{runtimeContext-BdTaYxJD.js → runtimeContext-CH97jPZ0.js} +80 -37
- package/dist/{public/sdk/runtimeLoader-Dxn8UA8B.js → esm/sdk/runtimeLoader-BFAmJAbu.js} +9 -9
- package/dist/esm/sdk/{secp256k1-CQFsI3qQ.js → secp256k1-Cr1jBW1n.js} +3 -3
- package/dist/esm/sdk/{signEvmFamily-CZLET02E.js → signEvmFamily-Dxk4sBPY.js} +7 -7
- package/dist/esm/sdk/{signNear-BeUWiWm_.js → signNear-B0OCVKoH.js} +6 -6
- package/dist/esm/sdk/{signerLoader-C_w8vuhm.js → signerLoader-D0WU1jq_.js} +1 -1
- package/dist/{public/sdk/transactionState-Dd13hMoY.js → esm/sdk/transactionState-Bpm4GamO.js} +2 -2
- package/dist/esm/sdk/tx-confirm-ui.js +134 -93
- package/dist/esm/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/esm/sdk/wallet-ui.css +85 -31
- package/dist/{public/sdk/walletRecoveryCommit-DNvzgeIX.js → esm/sdk/walletRecoveryCommit-G6w6N5RV.js} +3 -3
- package/dist/esm/sdk/{warmSessionHydration-CCKeEIIy.js → warmSessionHydration-DDNYdTCz.js} +1 -1
- package/dist/esm/shared-ts/src/utils/routerAbEd25519Yao.js +13 -1
- package/dist/public/headers.manifest.json +1 -1
- package/dist/public/sdk/{adapters-Dgy69gf0.js → adapters-LgE4nnos.js} +95 -45
- package/dist/public/sdk/{defaultConfigs-DJCLCrg9.js → defaultConfigs-CyNOW4Sy.js} +1 -1
- package/dist/{esm/sdk/ecdsaCapabilityManifest-DA_fklIs.js → public/sdk/ecdsaCapabilityManifest-C8itxV9S.js} +1 -1
- package/dist/{esm/sdk/ecdsaPresignLifecycle-D_KCktCj.js → public/sdk/ecdsaPresignLifecycle-CnSnzoRJ.js} +13 -1
- package/dist/public/sdk/{ed25519SeedMaterial-0VmS6K9P.js → ed25519SeedMaterial-Cghz8-XB.js} +2 -2
- package/dist/public/sdk/{exactSessionState-C2aAv_ED.js → exactSessionState-Bt0HforB.js} +64 -11
- package/dist/public/sdk/{export-viewer-host-NhjFdpm-.js → export-viewer-host-B3K81QGA.js} +1 -1
- package/dist/public/sdk/{host-DACTruOj.js → host-Y_xmIzPO.js} +2 -2
- package/dist/public/sdk/{localOnly-DTNq69fJ.js → localOnly-B5TYHJiq.js} +2 -2
- package/dist/{esm/sdk/nearEd25519YaoMaterialActivation-4AuGG2DG.js → public/sdk/nearEd25519YaoMaterialActivation-BLxVE6E5.js} +89 -5
- package/dist/public/sdk/{nearEd25519YaoSigningPreparation-jiGcQylO.js → nearEd25519YaoSigningPreparation-DX6xG-IW.js} +1 -1
- package/dist/public/sdk/{prfCache-Dwwauj4v.js → prfCache-CgAr-VEU.js} +24 -4
- package/dist/{esm/sdk/recovery-entrypoint-CFTX6PFZ.js → public/sdk/recovery-entrypoint-D39R1avB.js} +3 -3
- package/dist/{esm/sdk/registration-CuP1WmQu.js → public/sdk/registration-BtPLgKHk.js} +1 -1
- package/dist/public/sdk/{registration-D8nYJKec.js → registration-D-istkMZ.js} +253 -38
- package/dist/public/sdk/{registrationPreparationPreload-DDe0sbZi.js → registrationPreparationPreload-CvnlDCVn.js} +2 -2
- package/dist/{esm/sdk/router-DeX_cJ2f.js → public/sdk/router-CeFS9SgT.js} +3 -3
- package/dist/{esm/sdk/routerAbNormalSigning-BGpRKRAj.js → public/sdk/routerAbNormalSigning-DktZKnf1.js} +1 -1
- package/dist/{esm/sdk/runtime-auth-Ch00YcH5.js → public/sdk/runtime-auth-B7z1ANNp.js} +8 -8
- package/dist/public/sdk/{runtime-device-link-CEhVZYAw.js → runtime-device-link-B8HGDakg.js} +4 -4
- package/dist/public/sdk/{runtime-ecdsa-tempo-B-qMRrmx.js → runtime-ecdsa-tempo-DKdS5-us.js} +5 -5
- package/dist/{esm/sdk/runtime-email-otp-giyMPib8.js → public/sdk/runtime-email-otp-D5bxhdyG.js} +4 -4
- package/dist/{esm/sdk/runtime-export-CV-6G1Oy.js → public/sdk/runtime-export--hvNrx8l.js} +4 -4
- package/dist/{esm/sdk/runtime-near-DoDcS88O.js → public/sdk/runtime-near-CEexHoug.js} +4 -4
- package/dist/{esm/sdk/runtime-preferences-Canyenle.js → public/sdk/runtime-preferences-BiqPp1lV.js} +4 -4
- package/dist/public/sdk/{runtime-recovery-lWyILD1g.js → runtime-recovery-BYu1gDq_.js} +4 -4
- package/dist/public/sdk/{runtimeContext-BdTaYxJD.js → runtimeContext-CH97jPZ0.js} +80 -37
- package/dist/{esm/sdk/runtimeLoader-Dxn8UA8B.js → public/sdk/runtimeLoader-BFAmJAbu.js} +9 -9
- package/dist/public/sdk/{secp256k1-CQFsI3qQ.js → secp256k1-Cr1jBW1n.js} +3 -3
- package/dist/public/sdk/{signEvmFamily-CZLET02E.js → signEvmFamily-Dxk4sBPY.js} +7 -7
- package/dist/public/sdk/{signNear-BeUWiWm_.js → signNear-B0OCVKoH.js} +6 -6
- package/dist/public/sdk/{signerLoader-C_w8vuhm.js → signerLoader-D0WU1jq_.js} +1 -1
- package/dist/{esm/sdk/transactionState-Dd13hMoY.js → public/sdk/transactionState-Bpm4GamO.js} +2 -2
- package/dist/public/sdk/tx-confirm-ui.js +134 -93
- package/dist/public/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/public/sdk/wallet-ui.css +85 -31
- package/dist/{esm/sdk/walletRecoveryCommit-DNvzgeIX.js → public/sdk/walletRecoveryCommit-G6w6N5RV.js} +3 -3
- package/dist/public/sdk/{warmSessionHydration-CCKeEIIy.js → warmSessionHydration-DDNYdTCz.js} +1 -1
- package/dist/public/sdk/workers/passkey-mpc-session.worker.js +92 -8
- package/dist/public/wallet-assets.manifest.json +74 -74
- package/dist/public/wallet-service/index.html +4 -4
- package/dist/types/wallet/src/SeamsWeb/operations/registration/registration.d.ts +15 -0
- package/dist/types/wallet/src/SeamsWeb/operations/registration/registrationTiming.d.ts +11 -1
- package/dist/types/wallet/src/SeamsWeb/signingSurface/BrowserSigningSurface.d.ts +6 -0
- package/dist/types/wallet/src/SeamsWeb/signingSurface/ports.d.ts +8 -2
- package/dist/types/wallet/src/core/rpcClients/relayer/walletRegistration.d.ts +49 -10
- package/dist/types/wallet/src/core/signingEngine/session/passkey/prfCache.d.ts +7 -9
- package/dist/types/wallet/src/core/signingEngine/session/passkey/warmSessionHydration.d.ts +7 -8
- package/dist/types/wallet/src/core/signingEngine/session/passkey/warmSessionMaterialWriter.d.ts +9 -9
- package/dist/types/wallet/src/core/signingEngine/session/warmCapabilities/public.d.ts +7 -8
- package/dist/types/wallet/src/core/signingEngine/uiConfirm/PasskeyMpcSessionDurableState.d.ts +3 -0
- package/dist/types/wallet/src/core/signingEngine/uiConfirm/uiConfirm.types.d.ts +6 -0
- package/dist/types/wallet/src/core/signingEngine/workerManager/workers/shamir3pass/clientSealPreparation.d.ts +2 -0
- package/dist/types/wallet/src/core/types/secure-confirm-worker.d.ts +15 -1
- package/dist/workers/passkey-mpc-session.worker.js +92 -8
- package/package.json +1 -1
|
@@ -10,24 +10,24 @@ import { f as WALLET_EMAIL_OTP_TRANSACTION_SIGN_OPERATION, n as SIGNER_AUTH_METH
|
|
|
10
10
|
import { a as toIndexedDbChainTargetKey } from "./normalization-oJyXl3Vn.js";
|
|
11
11
|
import { o as normalizeRuntimePolicyScope } from "./participants-Bcnsa_ip.js";
|
|
12
12
|
import { _ as isEd25519ExtensionOfEcdsaWalletAuthority, g as isCombinedWalletSignerActivationSetV1, m as isActiveEcdsaWalletAuthorityV1 } from "./sessionPolicy-B4FsPuk2.js";
|
|
13
|
-
import { Bt as parseWalletAuthAuthorityRef, Ct as sameRouterAbEcdsaDerivationNormalSigningScopeV1, Ft as isEmailOtpWalletAuthAuthority, Ht as walletAuthAuthorityRef, It as isPasskeyWalletAuthAuthority, K as ROUTER_AB_ECDSA_DERIVATION_OPERATION_STEP_UP_PATH, Lt as parseEmailOtpWalletAuthAuthority, Q as computeRouterAbEcdsaOperationStepUpChallengeB64u, Sn as
|
|
13
|
+
import { Bt as parseWalletAuthAuthorityRef, Cn as routerAbMpcMaterialActivationRefToWire, Ct as sameRouterAbEcdsaDerivationNormalSigningScopeV1, Ft as isEmailOtpWalletAuthAuthority, Ht as walletAuthAuthorityRef, It as isPasskeyWalletAuthAuthority, K as ROUTER_AB_ECDSA_DERIVATION_OPERATION_STEP_UP_PATH, Lt as parseEmailOtpWalletAuthAuthority, Q as computeRouterAbEcdsaOperationStepUpChallengeB64u, Sn as routerAbMpcMaterialActivationRefFromWire, Vt as walletAuthAuthoritiesMatch, _t as requireRouterAbEcdsaDerivationNormalSigningStateV1, nt as parseRouterAbEcdsaDerivationNormalSigningScopeV1, ot as parseRouterAbEcdsaOperationStepUpAuthorizationRequestV1, st as parseRouterAbEcdsaOperationStepUpAuthorizationResponseV1, vt as routerAbEcdsaDerivationActiveStateId } from "./ecdsaPresignLifecycle-CnSnzoRJ.js";
|
|
14
14
|
import { A as signingLaneAuthBindingKey, C as toThresholdOwnerAddress, D as SigningSessionPlanKind, E as SigningSessionIds, M as buildEvmFamilyEcdsaSignerBinding, N as exactEcdsaSigningLaneIdentity, P as exactEcdsaSigningLaneIdentityFromSelectedLane, R as exactSigningLaneIdentityFromSelectedLane, T as SigningOperationIntent, c as buildResolvedEvmFamilyEcdsaKey, f as deriveEvmFamilyKeyFingerprintFromPublicFacts, j as signingLaneAuthMethod, l as buildVerifiedEcdsaPublicFacts, n as buildBaseEvmFamilyEcdsaKeyIdentity, o as buildHydratedEcdsaSignerMaterial, q as requireEvmFamilyEcdsaSigner, s as buildPasskeyEcdsaAuthBinding, u as deriveEvmFamilyEcdsaKeyHandle, vt as computeEcdsaDerivationRoleLocalRelayerKeyId, x as toRpId, y as toEvmFamilyEcdsaKeyHandle, z as exactSigningLaneIdentityKey } from "./evmFamilyEcdsaIdentity-_kuKSW35.js";
|
|
15
15
|
import { d as parseEcdsaThresholdKeyId, l as parseEcdsaRoleLocalPersistedMaterialRef, r as parseEcdsaClientVerifyingShareB64u } from "./keyMaterialBrands-BbjCfzXv.js";
|
|
16
16
|
import { a as SIGNING_SESSION_EXPIRY_DETECTION_SOURCES, m as createSigningFlowEvent, o as SigningEventPhase } from "./sdkSentEvents-5Pi-hjHB.js";
|
|
17
17
|
import { t as parseSignerSlot } from "./signerSlot-DbNAs-kc.js";
|
|
18
18
|
import { t as demoEmailOtpCodeFromDelivery } from "./challengeDelivery-BjLKoou3.js";
|
|
19
|
-
import { b as openEcdsaRoleLocalSigningMaterialWasm, t as buildReadySecp256k1SigningMaterial } from "./secp256k1-
|
|
20
|
-
import { D as projectEcdsaRoleLocalPublicFactsToChainTarget, y as routerAbEcdsaDerivationPublicCapabilitiesEqual } from "./ecdsaCapabilityManifest-
|
|
19
|
+
import { b as openEcdsaRoleLocalSigningMaterialWasm, t as buildReadySecp256k1SigningMaterial } from "./secp256k1-Cr1jBW1n.js";
|
|
20
|
+
import { D as projectEcdsaRoleLocalPublicFactsToChainTarget, y as routerAbEcdsaDerivationPublicCapabilitiesEqual } from "./ecdsaCapabilityManifest-C8itxV9S.js";
|
|
21
21
|
import { c as evmNonceLeaseToManagedReservation, l as evmReserveNonceInputToLane, s as evmManagedReservationToLane } from "./nonceLaneKeys-B_RcSS6M.js";
|
|
22
|
-
import { c as buildTempoTransactionSigningLane, o as buildEvmTransactionSigningLane, x as selectedEcdsaLane, y as laneCandidateAuthMethod } from "./nearEd25519YaoSigningPreparation-
|
|
22
|
+
import { c as buildTempoTransactionSigningLane, o as buildEvmTransactionSigningLane, x as selectedEcdsaLane, y as laneCandidateAuthMethod } from "./nearEd25519YaoSigningPreparation-DX6xG-IW.js";
|
|
23
23
|
import { a as throwEmailOtpSigningSessionAuthStateError, o as buildEmailOtpRoutePlan } from "./routePlan-nLpPFHB-.js";
|
|
24
24
|
import { r as parseSigningOperationFingerprintDigest } from "./operationFingerprint-CsYO6b0a.js";
|
|
25
25
|
import { a as emitSigningBoundaryTrace, c as emitSigningSessionFlowFailure, l as emitSigningSessionFlowTrace, o as emitSigningLaneResolutionTrace, s as emitSigningPlannerDecisionTrace, t as createSigningBoundaryTraceEvent } from "./trace-DWnDLSuV.js";
|
|
26
|
-
import { i as loadWebAuthnP256EngineCtor, n as loadSignEvmFamilyWithUiConfirmForTempo, r as loadSignEvmWithUiConfirm, t as loadSecp256k1EngineCtor } from "./signerLoader-
|
|
26
|
+
import { i as loadWebAuthnP256EngineCtor, n as loadSignEvmFamilyWithUiConfirmForTempo, r as loadSignEvmWithUiConfirm, t as loadSecp256k1EngineCtor } from "./signerLoader-D0WU1jq_.js";
|
|
27
27
|
import { a as isPasskeySigningAuthPlan, i as isEmailOtpSigningAuthPlan, n as SigningAuthPlanKind } from "./promptText-BEgOkGxB.js";
|
|
28
28
|
import { t as computeSigningOperationFingerprint, u as signingAuthPlanFromSigningSessionPlan } from "./operationFingerprint-DEPg9A3h.js";
|
|
29
|
-
import { S as decideWalletSessionQuotaAdmissionFailure, _ as WALLET_SESSION_FAILURE_CODES, g as walletSessionFailureFromError, m as walletSessionFailureErrorFromPayload, v as WalletSessionQuotaAdmissionError, x as classifyWalletSessionQuotaAdmissionFailure, y as buildOperationAuthorizationQueueKey } from "./routerAbNormalSigning-
|
|
30
|
-
import { b as withThresholdCommitQueue, f as ecdsaAvailableLaneCandidatesForTarget, h as isConcreteAvailableSigningLane, o as selectEvmFamilyEcdsaMaterialCandidate, r as prepareTransactionSigningOperation, u as availableEcdsaSigningLaneAuthMethod, v as requireAuthoritativeExpiredWalletSessionAuthorizationBoundary, y as clearThresholdCommitQueue } from "./transactionState-
|
|
29
|
+
import { S as decideWalletSessionQuotaAdmissionFailure, _ as WALLET_SESSION_FAILURE_CODES, g as walletSessionFailureFromError, m as walletSessionFailureErrorFromPayload, v as WalletSessionQuotaAdmissionError, x as classifyWalletSessionQuotaAdmissionFailure, y as buildOperationAuthorizationQueueKey } from "./routerAbNormalSigning-DktZKnf1.js";
|
|
30
|
+
import { b as withThresholdCommitQueue, f as ecdsaAvailableLaneCandidatesForTarget, h as isConcreteAvailableSigningLane, o as selectEvmFamilyEcdsaMaterialCandidate, r as prepareTransactionSigningOperation, u as availableEcdsaSigningLaneAuthMethod, v as requireAuthoritativeExpiredWalletSessionAuthorizationBoundary, y as clearThresholdCommitQueue } from "./transactionState-Bpm4GamO.js";
|
|
31
31
|
import { t as bytesToHex } from "./bytes-CwytAKz8.js";
|
|
32
32
|
import { d as reserveNonceInputFromBoundary, f as buildEvmDisplayModel, r as isEvmFamilyEcdsaMaterialSupersededError, t as requiredEvmFamilyRequestSignatureUses, u as fromManagedNonceReservationSnapshot } from "./signatureUses-C1o1pDql.js";
|
|
33
33
|
import { t as buildTempoDisplayModel } from "./display-Cw90-qmF.js";
|
|
@@ -11,7 +11,7 @@ import { n as SIGNER_AUTH_METHODS, t as SENSITIVE_OPERATION_POLICIES } from "./s
|
|
|
11
11
|
import { r as normalizeThresholdEd25519ParticipantIds } from "./participants-Bcnsa_ip.js";
|
|
12
12
|
import { t as toAccountId } from "./accountIds-Ck4GAQfm.js";
|
|
13
13
|
import { o as normalizeThresholdRuntimePolicyScope } from "./sessionPolicy-B4FsPuk2.js";
|
|
14
|
-
import { Ht as walletAuthAuthorityRef, R as parseWalletSessionOperationCredentialV1, Rt as parsePasskeyWalletAuthAuthority } from "./ecdsaPresignLifecycle-
|
|
14
|
+
import { Ht as walletAuthAuthorityRef, R as parseWalletSessionOperationCredentialV1, Rt as parsePasskeyWalletAuthAuthority } from "./ecdsaPresignLifecycle-CnSnzoRJ.js";
|
|
15
15
|
import { c as parseCapabilityOperationId, d as parseMpcWalletSigningQuotaId, f as parsePrincipalId, h as parseWalletSessionId, m as parseWalletSessionAuthorizationId, p as parseTenantId, s as parseCapabilityId } from "./capabilityKinds-jwCEaqBU.js";
|
|
16
16
|
import { A as signingLaneAuthBindingKey, D as SigningSessionPlanKind, E as SigningSessionIds, L as exactEd25519SigningLaneIdentityFromSelectedLane, O as summarizeSigningLane, T as SigningOperationIntent, U as nearEd25519SignerBindingFromBoundaryFields, j as signingLaneAuthMethod, k as summarizeSigningSessionPlan, w as SigningKeyRefIntentKind, x as toRpId, z as exactSigningLaneIdentityKey } from "./evmFamilyEcdsaIdentity-_kuKSW35.js";
|
|
17
17
|
import { a as SIGNING_SESSION_EXPIRY_DETECTION_SOURCES, m as createSigningFlowEvent, o as SigningEventPhase } from "./sdkSentEvents-5Pi-hjHB.js";
|
|
@@ -23,19 +23,19 @@ import { a as normalizeRegistrationCredential, i as normalizeAuthenticationCrede
|
|
|
23
23
|
import { p as nonceLeaseToRef } from "./nonceLaneKeys-B_RcSS6M.js";
|
|
24
24
|
import { i as buildNearAccountRefs, n as resolveProfileAccountContextFromCandidates } from "./profileAccountProjection-C9rVhbeJ.js";
|
|
25
25
|
import { i as WorkerResponseType, n as NearSignerWorkerCustomRequestType, r as WorkerRequestType } from "./signer-worker-DYRteieu.js";
|
|
26
|
-
import {
|
|
26
|
+
import { b as fundImplicitNearAccountForTesting, s as parseWalletSessionAlreadyCommittedResponseV1, t as nearEd25519YaoMaterialActivationFromMetadata } from "./nearEd25519YaoMaterialActivation-BLxVE6E5.js";
|
|
27
27
|
import { n as buildRelayerJsonPostRequestInit, t as buildBearerAuthorizationHeader } from "./relayerHttp-LsVTZCxA.js";
|
|
28
|
-
import { s as buildNearTransactionSigningLane } from "./nearEd25519YaoSigningPreparation-
|
|
28
|
+
import { s as buildNearTransactionSigningLane } from "./nearEd25519YaoSigningPreparation-DX6xG-IW.js";
|
|
29
29
|
import { n as computeCapabilityOperationFingerprintDigest, r as parseSigningOperationFingerprintDigest, t as buildCapabilityOperationEnvelope } from "./operationFingerprint-CsYO6b0a.js";
|
|
30
30
|
import { a as emitSigningBoundaryTrace, o as emitSigningLaneResolutionTrace, s as emitSigningPlannerDecisionTrace, t as createSigningBoundaryTraceEvent } from "./trace-DWnDLSuV.js";
|
|
31
31
|
import { a as toActionArgsWasm, n as fromActionArgsWasm, o as validateActionArgsWasm, t as ActionType } from "./actions-DsBQcjBn.js";
|
|
32
32
|
import { n as SignedTransaction } from "./NearClient-BQgcqAzG.js";
|
|
33
|
-
import { n as PASSKEY_MANAGER_DEFAULT_CONFIGS } from "./defaultConfigs-
|
|
33
|
+
import { n as PASSKEY_MANAGER_DEFAULT_CONFIGS } from "./defaultConfigs-CyNOW4Sy.js";
|
|
34
34
|
import { n as buildNearNonceLane } from "./NonceCoordinator-C7QltTDC.js";
|
|
35
35
|
import { a as isPasskeySigningAuthPlan, i as isEmailOtpSigningAuthPlan, n as SigningAuthPlanKind, o as isWarmSessionSigningAuthPlan } from "./promptText-BEgOkGxB.js";
|
|
36
36
|
import { S as isSigningOperationReviewApprovedState, _ as SigningOperationCommandKind, c as runSigningConfirmationCommand, g as prepareStepUpAuth, h as buildSigningConfirmationAuthParams, l as runTransactionSigningConfirmationCommand, n as confirmationConfigForSigningAuthPlan, o as mapSigningConfirmationProgress, s as resolveSigningConfirmationAuthMethod, u as signingAuthPlanFromSigningSessionPlan, w as runSigningOperationCommand, x as createSigningOperationStateRef } from "./operationFingerprint-DEPg9A3h.js";
|
|
37
|
-
import { C as waitForWalletSessionQuotaAdmissionRetry, S as decideWalletSessionQuotaAdmissionFailure, a as buildRouterAbEd25519NormalSigningFinalizeRequestV2, b as buildWalletSessionQuotaAdmissionQueueKey, d as routerAbCanonicalWireBytesToB64u, f as routerAbNormalSigningActionFingerprint, g as walletSessionFailureFromError, i as buildRouterAbEd25519Nep413PrepareRequestV2, n as buildRouterAbEd25519DelegateActionPrepareRequestV2, r as buildRouterAbEd25519NearTransactionPrepareRequestV2, s as finalizeRouterAbNormalSigningV2, u as prepareRouterAbNormalSigningV2, v as WalletSessionQuotaAdmissionError, x as classifyWalletSessionQuotaAdmissionFailure } from "./routerAbNormalSigning-
|
|
38
|
-
import { a as recordAvailableSigningLanesRead, b as withThresholdCommitQueue, c as selectTransactionLaneFromAvailableLanes, i as receiveTransactionIntent, n as prepareTransactionOperationFromReadiness, r as prepareTransactionSigningOperation, s as selectNearEd25519MaterialCandidate, t as classifyTransactionReadiness, v as requireAuthoritativeExpiredWalletSessionAuthorizationBoundary } from "./transactionState-
|
|
37
|
+
import { C as waitForWalletSessionQuotaAdmissionRetry, S as decideWalletSessionQuotaAdmissionFailure, a as buildRouterAbEd25519NormalSigningFinalizeRequestV2, b as buildWalletSessionQuotaAdmissionQueueKey, d as routerAbCanonicalWireBytesToB64u, f as routerAbNormalSigningActionFingerprint, g as walletSessionFailureFromError, i as buildRouterAbEd25519Nep413PrepareRequestV2, n as buildRouterAbEd25519DelegateActionPrepareRequestV2, r as buildRouterAbEd25519NearTransactionPrepareRequestV2, s as finalizeRouterAbNormalSigningV2, u as prepareRouterAbNormalSigningV2, v as WalletSessionQuotaAdmissionError, x as classifyWalletSessionQuotaAdmissionFailure } from "./routerAbNormalSigning-DktZKnf1.js";
|
|
38
|
+
import { a as recordAvailableSigningLanesRead, b as withThresholdCommitQueue, c as selectTransactionLaneFromAvailableLanes, i as receiveTransactionIntent, n as prepareTransactionOperationFromReadiness, r as prepareTransactionSigningOperation, s as selectNearEd25519MaterialCandidate, t as classifyTransactionReadiness, v as requireAuthoritativeExpiredWalletSessionAuthorizationBoundary } from "./transactionState-Bpm4GamO.js";
|
|
39
39
|
//#region src/core/platform/secretSources.ts
|
|
40
40
|
const clientSecretSourceBrand = Symbol("ClientSecretSource");
|
|
41
41
|
const emailOtpWorkerSessionHandleBrand = Symbol("EmailOtpWorkerSessionHandle");
|
|
@@ -4,7 +4,7 @@ let webAuthnP256EngineCtorPromise = null;
|
|
|
4
4
|
let signEvmWithUiConfirmPromise = null;
|
|
5
5
|
let signEvmFamilyWithUiConfirmForTempoPromise = null;
|
|
6
6
|
async function loadSecp256k1EngineCtor() {
|
|
7
|
-
if (!secp256k1EngineCtorPromise) secp256k1EngineCtorPromise = import("./secp256k1-
|
|
7
|
+
if (!secp256k1EngineCtorPromise) secp256k1EngineCtorPromise = import("./secp256k1-Cr1jBW1n.js").then((n) => n.n).then((mod) => mod.Secp256k1Engine);
|
|
8
8
|
return await secp256k1EngineCtorPromise;
|
|
9
9
|
}
|
|
10
10
|
async function loadWebAuthnP256EngineCtor() {
|
package/dist/{esm/sdk/transactionState-Dd13hMoY.js → public/sdk/transactionState-Bpm4GamO.js}
RENAMED
|
@@ -2,10 +2,10 @@ import { n as normalizeBoundedPositiveInteger, p as mpcMaterialActivationRefsEqu
|
|
|
2
2
|
import { m as nearEd25519SigningKeyIdFromString } from "./registrationIntent-DwAIMQYh.js";
|
|
3
3
|
import { c as toWalletId, o as thresholdEcdsaChainTargetKey, s as thresholdEcdsaChainTargetsEqual } from "./ecdsaChainTarget-BOTPGIU_.js";
|
|
4
4
|
import { t as toAccountId } from "./accountIds-Ck4GAQfm.js";
|
|
5
|
-
import { Ht as walletAuthAuthorityRef } from "./ecdsaPresignLifecycle-
|
|
5
|
+
import { Ht as walletAuthAuthorityRef } from "./ecdsaPresignLifecycle-CnSnzoRJ.js";
|
|
6
6
|
import { A as signingLaneAuthBindingKey, V as exactSigningLaneWalletId, f as deriveEvmFamilyKeyFingerprintFromPublicFacts, j as signingLaneAuthMethod, x as toRpId } from "./evmFamilyEcdsaIdentity-_kuKSW35.js";
|
|
7
7
|
import { t as parseSignerSlot } from "./signerSlot-DbNAs-kc.js";
|
|
8
|
-
import { S as selectedEd25519Lane, a as nearEd25519SessionMatchesMaterialActivation, x as selectedEcdsaLane, y as laneCandidateAuthMethod } from "./nearEd25519YaoSigningPreparation-
|
|
8
|
+
import { S as selectedEd25519Lane, a as nearEd25519SessionMatchesMaterialActivation, x as selectedEcdsaLane, y as laneCandidateAuthMethod } from "./nearEd25519YaoSigningPreparation-DX6xG-IW.js";
|
|
9
9
|
//#region src/core/signingEngine/threshold/commitQueueShared.ts
|
|
10
10
|
const DEFAULT_MAX_QUEUE_LENGTH = 8;
|
|
11
11
|
const DEFAULT_QUEUE_TIMEOUT_MS = 45e3;
|
|
@@ -5668,12 +5668,18 @@ class TransactionReceipt extends C {
|
|
|
5668
5668
|
return /* @__PURE__ */ u2("div", {
|
|
5669
5669
|
class: "seams-transaction-toast",
|
|
5670
5670
|
"data-completed-stages": completedStages,
|
|
5671
|
+
"data-stage": receipt.state.kind,
|
|
5671
5672
|
"data-pending": pending,
|
|
5672
5673
|
children: [
|
|
5673
5674
|
/* @__PURE__ */ u2("div", {
|
|
5674
5675
|
class: "seams-toast-progress",
|
|
5675
5676
|
"aria-hidden": "true",
|
|
5676
|
-
children: /* @__PURE__ */ u2("span", {
|
|
5677
|
+
children: /* @__PURE__ */ u2("span", {
|
|
5678
|
+
class: "seams-toast-progress-fill",
|
|
5679
|
+
children: pending && /* @__PURE__ */ u2("span", {
|
|
5680
|
+
class: "seams-toast-progress-active"
|
|
5681
|
+
})
|
|
5682
|
+
})
|
|
5677
5683
|
}),
|
|
5678
5684
|
/* @__PURE__ */ u2("span", {
|
|
5679
5685
|
class: "seams-receipt-symbol",
|
|
@@ -5717,25 +5723,13 @@ class TransactionReceipt extends C {
|
|
|
5717
5723
|
/* @__PURE__ */ u2("span", {
|
|
5718
5724
|
children: "Transaction receipt"
|
|
5719
5725
|
}),
|
|
5720
|
-
/* @__PURE__ */ u2("
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
kind: "minimize"
|
|
5728
|
-
})
|
|
5729
|
-
}),
|
|
5730
|
-
/* @__PURE__ */ u2("button", {
|
|
5731
|
-
type: "button",
|
|
5732
|
-
"aria-label": receiptIsPending(receipt.state) ? "Minimize transaction" : "Close receipt",
|
|
5733
|
-
onClick: this.close,
|
|
5734
|
-
children: /* @__PURE__ */ u2(ReviewIcon, {
|
|
5735
|
-
kind: "close"
|
|
5736
|
-
})
|
|
5737
|
-
})
|
|
5738
|
-
]
|
|
5726
|
+
/* @__PURE__ */ u2("button", {
|
|
5727
|
+
type: "button",
|
|
5728
|
+
"aria-label": "Minimize transaction",
|
|
5729
|
+
onClick: this.minimize,
|
|
5730
|
+
children: /* @__PURE__ */ u2(ReviewIcon, {
|
|
5731
|
+
kind: "minimize"
|
|
5732
|
+
})
|
|
5739
5733
|
})
|
|
5740
5734
|
]
|
|
5741
5735
|
}),
|
|
@@ -5826,72 +5820,69 @@ class TransactionReceipt extends C {
|
|
|
5826
5820
|
})
|
|
5827
5821
|
]
|
|
5828
5822
|
}),
|
|
5829
|
-
/* @__PURE__ */ u2(
|
|
5830
|
-
|
|
5831
|
-
children: /* @__PURE__ */ u2(
|
|
5832
|
-
|
|
5833
|
-
children:
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
/* @__PURE__ */ u2(
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
address: true,
|
|
5846
|
-
label: `Copy signer address ${data.model.signerAccount}`
|
|
5847
|
-
})
|
|
5848
|
-
})
|
|
5849
|
-
]
|
|
5850
|
-
}),
|
|
5851
|
-
recipient && /* @__PURE__ */ u2("div", {
|
|
5852
|
-
children: [
|
|
5853
|
-
/* @__PURE__ */ u2("dt", {
|
|
5854
|
-
children: "To"
|
|
5855
|
-
}),
|
|
5856
|
-
/* @__PURE__ */ u2("dd", {
|
|
5857
|
-
class: "seams-review-recipient",
|
|
5858
|
-
children: /* @__PURE__ */ u2(CopyReviewValue, {
|
|
5859
|
-
value: recipient,
|
|
5860
|
-
address: true,
|
|
5861
|
-
label: `Copy recipient address ${recipient}`
|
|
5862
|
-
})
|
|
5863
|
-
})
|
|
5864
|
-
]
|
|
5865
|
-
}),
|
|
5866
|
-
receipt.state.hash && /* @__PURE__ */ u2("div", {
|
|
5867
|
-
children: [
|
|
5868
|
-
/* @__PURE__ */ u2("dt", {
|
|
5869
|
-
children: "Transaction"
|
|
5870
|
-
}),
|
|
5871
|
-
/* @__PURE__ */ u2("dd", {
|
|
5872
|
-
children: [
|
|
5873
|
-
/* @__PURE__ */ u2(ReviewAddress, {
|
|
5874
|
-
value: receipt.state.hash
|
|
5875
|
-
}),
|
|
5876
|
-
/* @__PURE__ */ u2(CopyReviewValue, {
|
|
5877
|
-
value: receipt.state.hash
|
|
5878
|
-
})
|
|
5879
|
-
]
|
|
5823
|
+
/* @__PURE__ */ u2(ReviewDisclosure, {
|
|
5824
|
+
label: "Receipt details",
|
|
5825
|
+
children: /* @__PURE__ */ u2("dl", {
|
|
5826
|
+
class: "seams-review-fields",
|
|
5827
|
+
children: [
|
|
5828
|
+
data.model?.signerAccount && /* @__PURE__ */ u2("div", {
|
|
5829
|
+
children: [
|
|
5830
|
+
/* @__PURE__ */ u2("dt", {
|
|
5831
|
+
children: "From"
|
|
5832
|
+
}),
|
|
5833
|
+
/* @__PURE__ */ u2("dd", {
|
|
5834
|
+
class: "seams-review-recipient",
|
|
5835
|
+
children: /* @__PURE__ */ u2(CopyReviewValue, {
|
|
5836
|
+
value: data.model.signerAccount,
|
|
5837
|
+
address: true,
|
|
5838
|
+
label: `Copy signer address ${data.model.signerAccount}`
|
|
5880
5839
|
})
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5840
|
+
})
|
|
5841
|
+
]
|
|
5842
|
+
}),
|
|
5843
|
+
recipient && /* @__PURE__ */ u2("div", {
|
|
5844
|
+
children: [
|
|
5845
|
+
/* @__PURE__ */ u2("dt", {
|
|
5846
|
+
children: "To"
|
|
5847
|
+
}),
|
|
5848
|
+
/* @__PURE__ */ u2("dd", {
|
|
5849
|
+
class: "seams-review-recipient",
|
|
5850
|
+
children: /* @__PURE__ */ u2(CopyReviewValue, {
|
|
5851
|
+
value: recipient,
|
|
5852
|
+
address: true,
|
|
5853
|
+
label: `Copy recipient address ${recipient}`
|
|
5890
5854
|
})
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5855
|
+
})
|
|
5856
|
+
]
|
|
5857
|
+
}),
|
|
5858
|
+
receipt.state.hash && /* @__PURE__ */ u2("div", {
|
|
5859
|
+
children: [
|
|
5860
|
+
/* @__PURE__ */ u2("dt", {
|
|
5861
|
+
children: "Transaction"
|
|
5862
|
+
}),
|
|
5863
|
+
/* @__PURE__ */ u2("dd", {
|
|
5864
|
+
children: [
|
|
5865
|
+
/* @__PURE__ */ u2(ReviewAddress, {
|
|
5866
|
+
value: receipt.state.hash
|
|
5867
|
+
}),
|
|
5868
|
+
/* @__PURE__ */ u2(CopyReviewValue, {
|
|
5869
|
+
value: receipt.state.hash
|
|
5870
|
+
})
|
|
5871
|
+
]
|
|
5872
|
+
})
|
|
5873
|
+
]
|
|
5874
|
+
}),
|
|
5875
|
+
/* @__PURE__ */ u2("div", {
|
|
5876
|
+
children: [
|
|
5877
|
+
/* @__PURE__ */ u2("dt", {
|
|
5878
|
+
children: "Status"
|
|
5879
|
+
}),
|
|
5880
|
+
/* @__PURE__ */ u2("dd", {
|
|
5881
|
+
children: heading
|
|
5882
|
+
})
|
|
5883
|
+
]
|
|
5884
|
+
})
|
|
5885
|
+
]
|
|
5895
5886
|
})
|
|
5896
5887
|
}),
|
|
5897
5888
|
/* @__PURE__ */ u2("button", {
|
|
@@ -5962,6 +5953,24 @@ function ReceiptStep(props) {
|
|
|
5962
5953
|
}
|
|
5963
5954
|
|
|
5964
5955
|
// src/core/signingEngine/uiConfirm/ui/preact/mountConfirmationSurface.tsx
|
|
5956
|
+
var RECEIPT_MORPH_DURATION_MS = 360;
|
|
5957
|
+
var RECEIPT_MORPH_EASING = "cubic-bezier(0.22, 1, 0.36, 1)";
|
|
5958
|
+
var RECEIPT_ANCHORS = [".seams-receipt-symbol", '[role="status"]', ".seams-review-amount"];
|
|
5959
|
+
function captureReceiptAnchors(surface) {
|
|
5960
|
+
const anchors = [];
|
|
5961
|
+
for (const selector of RECEIPT_ANCHORS) {
|
|
5962
|
+
const element = surface.querySelector(selector);
|
|
5963
|
+
if (!element)
|
|
5964
|
+
continue;
|
|
5965
|
+
anchors.push({
|
|
5966
|
+
selector,
|
|
5967
|
+
text: element.textContent,
|
|
5968
|
+
bounds: element.getBoundingClientRect(),
|
|
5969
|
+
fontSize: getComputedStyle(element).fontSize
|
|
5970
|
+
});
|
|
5971
|
+
}
|
|
5972
|
+
return anchors;
|
|
5973
|
+
}
|
|
5965
5974
|
var nextSurfaceId = 0;
|
|
5966
5975
|
|
|
5967
5976
|
class MountedConfirmationSurface {
|
|
@@ -5975,6 +5984,7 @@ class MountedConfirmationSurface {
|
|
|
5975
5984
|
this.receiptMotion = [];
|
|
5976
5985
|
this.receiptShell?.remove();
|
|
5977
5986
|
this.receiptShell = null;
|
|
5987
|
+
this.element.removeAttribute("data-receipt-morphing");
|
|
5978
5988
|
};
|
|
5979
5989
|
this.dispose = () => {
|
|
5980
5990
|
if (this.state.kind === "disposed")
|
|
@@ -6061,6 +6071,7 @@ class MountedConfirmationSurface {
|
|
|
6061
6071
|
const viewChanged = this.receipt?.view !== model.view;
|
|
6062
6072
|
const previousShell = this.receiptShell ?? this.element.querySelector(".modal-container-root");
|
|
6063
6073
|
const previousBounds = previousShell?.getBoundingClientRect();
|
|
6074
|
+
const anchors = viewChanged ? captureReceiptAnchors(this.element) : [];
|
|
6064
6075
|
const previousRadius = previousShell ? getComputedStyle(previousShell).borderRadius : "26px";
|
|
6065
6076
|
if (viewChanged)
|
|
6066
6077
|
this.clearReceiptMotion();
|
|
@@ -6077,18 +6088,48 @@ class MountedConfirmationSurface {
|
|
|
6077
6088
|
shell.setAttribute("aria-hidden", "true");
|
|
6078
6089
|
this.element.appendChild(shell);
|
|
6079
6090
|
this.receiptShell = shell;
|
|
6091
|
+
this.element.setAttribute("data-receipt-morphing", "");
|
|
6080
6092
|
const morph = shell.animate([
|
|
6081
6093
|
{ left: `${previousBounds.left}px`, top: `${previousBounds.top}px`, width: `${previousBounds.width}px`, height: `${previousBounds.height}px`, borderRadius: previousRadius },
|
|
6082
6094
|
{ left: `${bounds.left}px`, top: `${bounds.top}px`, width: `${bounds.width}px`, height: `${bounds.height}px`, borderRadius: getComputedStyle(target).borderRadius }
|
|
6083
|
-
], { duration:
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6095
|
+
], { duration: RECEIPT_MORPH_DURATION_MS, easing: RECEIPT_MORPH_EASING, fill: "both" });
|
|
6096
|
+
this.receiptMotion = [morph];
|
|
6097
|
+
const shared = new Set;
|
|
6098
|
+
for (const anchor of anchors) {
|
|
6099
|
+
const element = target.querySelector(anchor.selector);
|
|
6100
|
+
if (!element || element.textContent !== anchor.text)
|
|
6101
|
+
continue;
|
|
6102
|
+
const destination = element.getBoundingClientRect();
|
|
6103
|
+
shared.add(element);
|
|
6104
|
+
const scale = parseFloat(anchor.fontSize) / parseFloat(getComputedStyle(element).fontSize);
|
|
6105
|
+
this.receiptMotion.push(element.animate([
|
|
6106
|
+
{
|
|
6107
|
+
transform: `translate(${anchor.bounds.left - destination.left}px, ${anchor.bounds.top - destination.top}px) scale(${scale})`,
|
|
6108
|
+
transformOrigin: "top left"
|
|
6109
|
+
},
|
|
6110
|
+
{
|
|
6111
|
+
transform: "translate(0, 0) scale(1)",
|
|
6112
|
+
transformOrigin: "top left"
|
|
6113
|
+
}
|
|
6114
|
+
], { duration: RECEIPT_MORPH_DURATION_MS, easing: RECEIPT_MORPH_EASING }));
|
|
6115
|
+
}
|
|
6116
|
+
const details = target.querySelectorAll(".seams-transaction-receipt > :not(.seams-receipt-heading), " + ".seams-receipt-heading > .seams-receipt-symbol, .seams-receipt-heading h2, " + ".seams-receipt-heading p, .seams-transaction-toast > :not(.seams-transaction-toast-text, .seams-toast-progress), " + ".seams-transaction-toast-text > *");
|
|
6117
|
+
let order = 0;
|
|
6118
|
+
for (const detail of details) {
|
|
6119
|
+
if (shared.has(detail))
|
|
6120
|
+
continue;
|
|
6121
|
+
this.receiptMotion.push(detail.animate([
|
|
6122
|
+
{ opacity: 0, transform: "translateY(8px)" },
|
|
6123
|
+
{ opacity: 1, transform: "translateY(0)" }
|
|
6124
|
+
], {
|
|
6125
|
+
duration: 120,
|
|
6126
|
+
delay: model.view === "toast" ? 240 : 180 + Math.min(order, 4) * 15,
|
|
6127
|
+
fill: "backwards",
|
|
6128
|
+
easing: "ease-out"
|
|
6129
|
+
}));
|
|
6130
|
+
order += 1;
|
|
6131
|
+
}
|
|
6132
|
+
morph.onfinish = this.clearReceiptMotion;
|
|
6092
6133
|
}
|
|
6093
6134
|
}
|
|
6094
6135
|
remove() {
|