@daimo/pay 0.3.7 → 0.3.9

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/build/index.es.js CHANGED
@@ -5,7 +5,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
  import { detect } from 'detect-browser';
6
6
  import React, { useEffect, useState, useCallback, useRef, useLayoutEffect, useMemo, createContext, createElement } from 'react';
7
7
  import { Buffer } from 'buffer';
8
- import { readDaimoPayOrderID, assert, assertNotNull, DaimoPayOrderMode, DaimoPayOrderStatusDest, ExternalPaymentOptions, getAddressContraction, capitalize, getDisplayPrice, debugJson, writeDaimoPayOrderID, DaimoPayIntentStatus, DaimoPayOrderStatusSource } from '@daimo/common';
8
+ import { readDaimoPayOrderID, assert, assertNotNull, DaimoPayOrderMode, DaimoPayOrderStatusDest, ExternalPaymentOptions, getAddressContraction, capitalize, getDisplayPrice, DaimoPayOrderStatusSource, DaimoPayIntentStatus, retryBackoff, debugJson, writeDaimoPayOrderID } from '@daimo/common';
9
9
  import styled$1, { css, keyframes, ThemeProvider } from 'styled-components';
10
10
  import { erc20Abi, getChainName, ethereum, arbitrum as arbitrum$1, base as base$2, optimism as optimism$1, polygon as polygon$1, ethereumSepolia, baseSepolia as baseSepolia$1, getChainExplorerTxUrl } from '@daimo/contract';
11
11
  import { zeroAddress, parseUnits } from 'viem';
@@ -900,13 +900,12 @@ const trpc = createTRPCClient({
900
900
  ],
901
901
  });
902
902
 
903
- function getPaymentInfo(setOpen, log) {
903
+ function getPaymentInfo({ daimoPayOrder, setDaimoPayOrder, setOpen, log, }) {
904
904
  // Wallet state.
905
905
  const { address: senderAddr } = useAccount();
906
906
  const { writeContractAsync } = useWriteContract();
907
907
  const { sendTransactionAsync } = useSendTransaction();
908
908
  // Daimo Pay order state.
909
- const [daimoPayOrder, setDaimoPayOrder] = useState();
910
909
  const [paymentWaitingMessage, setPaymentWaitingMessage] = useState();
911
910
  // Payment UI config.
912
911
  const [modalOptions, setModalOptions] = useState({});
@@ -2177,7 +2176,7 @@ const ResetContainer = styled(motion.div) `
2177
2176
  `;
2178
2177
 
2179
2178
  var name = "@daimo/pay";
2180
- var version = "0.3.7";
2179
+ var version = "0.3.9";
2181
2180
  var author = "Daimo";
2182
2181
  var homepage = "https://pay.daimo.com";
2183
2182
  var license = "BSD-2-Clause license";
@@ -6963,7 +6962,11 @@ const CoinLogos = ({ $size = 24 }) => {
6963
6962
  const InputUnderlineField = ({ value, onChange, onBlur, onKeyDown, }) => {
6964
6963
  // subtract width for decimal point if necessary
6965
6964
  const width = value.length - 0.5 * (value.includes(".") ? 1 : 0) + "ch";
6966
- return (jsxs("div", { style: { width: "auto", position: "relative" }, children: [jsx(InputField, { "$width": width, type: "text", pattern: "\\d*.\\d{2}", value: value, onChange: onChange, onBlur: onBlur, onKeyDown: onKeyDown, autoFocus: true }), jsx(Underline, {})] }));
6965
+ const selectAll = (e) => {
6966
+ // When entering edit mode, select the amount for quicker editing
6967
+ setTimeout(() => e.target.select(), 100);
6968
+ };
6969
+ return (jsxs("div", { style: { width: "auto", position: "relative" }, children: [jsx(InputField, { "$width": width, type: "text", pattern: "\\d*.\\d{2}", value: value, onChange: onChange, onBlur: onBlur, onFocus: selectAll, onKeyDown: onKeyDown, autoFocus: true }), jsx(Underline, {})] }));
6967
6970
  };
6968
6971
  const InputField = styled(motion.input) `
6969
6972
  box-sizing: border-box;
@@ -6992,14 +6995,15 @@ const Underline = styled(motion.div) `
6992
6995
  `;
6993
6996
  const OrderHeader = ({ minified = false }) => {
6994
6997
  const { paymentInfo } = useContext();
6995
- const price = paymentInfo.daimoPayOrder?.destFinalCallTokenAmount.usd.toFixed(2);
6998
+ const amount = paymentInfo.daimoPayOrder?.destFinalCallTokenAmount.usd.toFixed(2);
6996
6999
  const isEditable = paymentInfo.daimoPayOrder?.mode === DaimoPayOrderMode.CHOOSE_AMOUNT;
6997
- const [editablePrice, setEditablePrice] = useState(price ?? "");
6998
- const [isEditing, setIsEditing] = useState(false);
7000
+ const [editableAmount, setEditableAmount] = useState(amount ?? "");
7001
+ // Start out in edit mode immediately if amount = 0.
7002
+ const [isEditing, setIsEditing] = useState(amount === "0.00");
6999
7003
  const handleSave = () => {
7000
7004
  if (!isEditing)
7001
7005
  return;
7002
- paymentInfo.setChosenUsd(Number(editablePrice));
7006
+ paymentInfo.setChosenUsd(Number(editableAmount));
7003
7007
  setIsEditing(false);
7004
7008
  };
7005
7009
  const handleKeyDown = (e) => {
@@ -7007,20 +7011,20 @@ const OrderHeader = ({ minified = false }) => {
7007
7011
  handleSave();
7008
7012
  }
7009
7013
  };
7010
- const sanitizeAndSetPrice = (price) => {
7011
- if (!price.match(/^[0-9]*(\.[0-9]{0,2})?$/)) {
7014
+ const sanitizeAndSetAmount = (amount) => {
7015
+ if (!amount.match(/^[0-9]*(\.[0-9]{0,2})?$/)) {
7012
7016
  return;
7013
7017
  }
7014
7018
  const [digitsBeforeDecimal, digitsAfterDecimal] = (() => {
7015
- if (price.includes("."))
7016
- return price.split(".");
7019
+ if (amount.includes("."))
7020
+ return amount.split(".");
7017
7021
  else
7018
- return [price, ""];
7022
+ return [amount, ""];
7019
7023
  })();
7020
7024
  if (digitsBeforeDecimal.length > 5 || digitsAfterDecimal.length > 2) {
7021
7025
  return;
7022
7026
  }
7023
- setEditablePrice(price);
7027
+ setEditableAmount(amount);
7024
7028
  };
7025
7029
  const titleAmountContent = (() => {
7026
7030
  const buttonStyles = (() => {
@@ -7041,7 +7045,7 @@ const OrderHeader = ({ minified = false }) => {
7041
7045
  fontSize: "20px",
7042
7046
  };
7043
7047
  })();
7044
- return (jsxs(Fragment, { children: [isEditable && !minified && (jsx("div", { style: { width: buttonStyles.width, height: buttonStyles.height } })), !isEditing ? (jsxs("span", { children: ["$", price] })) : (jsxs("div", { style: { display: "flex" }, children: ["$", jsx(InputUnderlineField, { value: editablePrice, onChange: (e) => sanitizeAndSetPrice(e.target.value), onBlur: (e) => {
7048
+ return (jsxs(Fragment, { children: [isEditable && !minified && (jsx("div", { style: { width: buttonStyles.width, height: buttonStyles.height } })), !isEditing ? (jsxs("span", { children: ["$", amount] })) : (jsxs("div", { style: { display: "flex" }, children: ["$", jsx(InputUnderlineField, { value: editableAmount, onChange: (e) => sanitizeAndSetAmount(e.target.value), onBlur: (e) => {
7045
7049
  if (!e.relatedTarget) {
7046
7050
  setIsEditing(false);
7047
7051
  }
@@ -10044,13 +10048,7 @@ const TextButton = styled(motion.button) `
10044
10048
 
10045
10049
  const Confirmation = () => {
10046
10050
  const { paymentInfo } = useContext();
10047
- const { daimoPayOrder, refreshOrder } = paymentInfo;
10048
- useEffect(() => {
10049
- const interval = setInterval(() => {
10050
- refreshOrder();
10051
- }, 300);
10052
- return () => clearInterval(interval);
10053
- }, [refreshOrder]);
10051
+ const { daimoPayOrder } = paymentInfo;
10054
10052
  const { done, txURL } = (() => {
10055
10053
  if (daimoPayOrder && daimoPayOrder.mode === DaimoPayOrderMode.HYDRATED) {
10056
10054
  // Frontends are optimistic, assume submits will be successful
@@ -10621,7 +10619,7 @@ const SelectMethod = () => {
10621
10619
  setLoadingExternalPaymentOptions(false);
10622
10620
  };
10623
10621
  const usd = daimoPayOrder?.destFinalCallTokenAmount.usd;
10624
- if (usd) {
10622
+ if (usd != null) {
10625
10623
  refreshExternalPaymentOptions(usd);
10626
10624
  }
10627
10625
  }, [daimoPayOrder?.destFinalCallTokenAmount.usd]);
@@ -10987,7 +10985,37 @@ const DaimoPayProvider = ({ children, theme = "auto", mode = "auto", customTheme
10987
10985
  }
10988
10986
  }, [injectedConnector]);
10989
10987
  const log = debugMode ? console.log : () => { };
10990
- const paymentInfo = getPaymentInfo(setOpen, log);
10988
+ // PaymentInfo is a second, inner context object containing a DaimoPayOrder
10989
+ // plus all associated status and callbacks. In order for useContext() and
10990
+ // downstream hooks like useDaimoPayStatus() to work correctly, we must set
10991
+ // set refresh context when payment status changes; done via setDaimoPayOrder.
10992
+ const [daimoPayOrder, setDaimoPayOrder] = useState();
10993
+ const paymentInfo = getPaymentInfo({
10994
+ daimoPayOrder,
10995
+ setDaimoPayOrder,
10996
+ setOpen,
10997
+ log,
10998
+ });
10999
+ // When a payment is in progress, poll for status updates. Do this regardless
11000
+ // of whether the modal is still being displayed for useDaimoPayStatus().
11001
+ useEffect(() => {
11002
+ // Order just updated...
11003
+ if (daimoPayOrder?.mode !== DaimoPayOrderMode.HYDRATED)
11004
+ return;
11005
+ const { sourceStatus, intentStatus } = daimoPayOrder;
11006
+ let intervalMs = 0;
11007
+ if (sourceStatus === DaimoPayOrderStatusSource.WAITING_PAYMENT) {
11008
+ intervalMs = 2500; // additional, faster polling in WaitingOther
11009
+ }
11010
+ else if (intentStatus === DaimoPayIntentStatus.PENDING) {
11011
+ intervalMs = 300; // poll fast from (payment initiated) to (finished)
11012
+ }
11013
+ else {
11014
+ return;
11015
+ }
11016
+ log(`[PAY] polling in ${intervalMs}ms`);
11017
+ setTimeout(() => retryBackoff("refreshOrder", () => paymentInfo.refreshOrder()), intervalMs);
11018
+ }, [daimoPayOrder]);
10991
11019
  const loadAndShowPayment = async (payId, modalOptions) => {
10992
11020
  log(`[PAY] showing order ${payId}, options ${debugJson(modalOptions)}`);
10993
11021
  await paymentInfo.setPayId(payId);
@@ -11016,7 +11044,6 @@ const DaimoPayProvider = ({ children, theme = "auto", mode = "auto", customTheme
11016
11044
  setOpen,
11017
11045
  route,
11018
11046
  setRoute,
11019
- loadAndShowPayment,
11020
11047
  connector,
11021
11048
  setConnector,
11022
11049
  onConnect,
@@ -11035,6 +11062,9 @@ const DaimoPayProvider = ({ children, theme = "auto", mode = "auto", customTheme
11035
11062
  },
11036
11063
  resize,
11037
11064
  triggerResize: () => onResize((prev) => prev + 1),
11065
+ // Above: generic ConnectKit context
11066
+ // Below: Daimo Pay context
11067
+ loadAndShowPayment,
11038
11068
  paymentInfo,
11039
11069
  };
11040
11070
  return createElement(Context.Provider, { value }, jsx(Web3ContextProvider, { enabled: open, children: jsxs(ThemeProvider, { theme: defaultTheme$1, children: [children, jsx(DaimoPayModal, { lang: ckLang, theme: ckTheme, mode: mode, customTheme: ckCustomTheme })] }) }));
@@ -1 +1 @@
1
- {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -25,7 +25,12 @@ export interface PaymentInfo {
25
25
  txURL?: string;
26
26
  }) => void;
27
27
  }
28
- export declare function getPaymentInfo(setOpen: (showModal: boolean) => void, log: (...args: any[]) => void): {
28
+ export declare function getPaymentInfo({ daimoPayOrder, setDaimoPayOrder, setOpen, log, }: {
29
+ daimoPayOrder: DaimoPayOrder | undefined;
30
+ setDaimoPayOrder: (o: DaimoPayOrder) => void;
31
+ setOpen: (showModal: boolean) => void;
32
+ log: (...args: any[]) => void;
33
+ }): {
29
34
  setPayId: (payId: string | null) => Promise<void>;
30
35
  daimoPayOrder: DaimoPayOrder | undefined;
31
36
  modalOptions: DaimoPayModalOptions;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@daimo/pay",
3
3
  "private": false,
4
- "version": "0.3.7",
4
+ "version": "0.3.9",
5
5
  "author": "Daimo",
6
6
  "homepage": "https://pay.daimo.com",
7
7
  "license": "BSD-2-Clause license",