@daimo/pay 1.16.5 → 1.16.6

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.
Files changed (36) hide show
  1. package/build/index.d.ts +5 -1
  2. package/build/package.json.js +2 -2
  3. package/build/src/assets/logos.js +76 -2
  4. package/build/src/assets/logos.js.map +1 -1
  5. package/build/src/components/Common/ConnectorList/index.js +11 -2
  6. package/build/src/components/Common/ConnectorList/index.js.map +1 -1
  7. package/build/src/components/Common/Modal/index.js +1 -1
  8. package/build/src/components/Common/Modal/index.js.map +1 -1
  9. package/build/src/components/DaimoPayModal/ConnectWithQRCode.js +3 -2
  10. package/build/src/components/DaimoPayModal/ConnectWithQRCode.js.map +1 -1
  11. package/build/src/components/Pages/Connectors/index.js +0 -2
  12. package/build/src/components/Pages/Connectors/index.js.map +1 -1
  13. package/build/src/components/Pages/MobileConnectors/index.js +20 -2
  14. package/build/src/components/Pages/MobileConnectors/index.js.map +1 -1
  15. package/build/src/components/Pages/SelectWalletAmount/index.js +4 -2
  16. package/build/src/components/Pages/SelectWalletAmount/index.js.map +1 -1
  17. package/build/src/defaultConfig.js +3 -1
  18. package/build/src/defaultConfig.js.map +1 -1
  19. package/build/src/defaultConnectors.js +6 -0
  20. package/build/src/defaultConnectors.js.map +1 -1
  21. package/build/src/hooks/usePaymentState.js +6 -4
  22. package/build/src/hooks/usePaymentState.js.map +1 -1
  23. package/build/src/localizations/locales/en-US.js +1 -1
  24. package/build/src/localizations/locales/en-US.js.map +1 -1
  25. package/build/src/localizations/locales/es-ES.js +1 -1
  26. package/build/src/localizations/locales/es-ES.js.map +1 -1
  27. package/build/src/utils/index.js +2 -1
  28. package/build/src/utils/index.js.map +1 -1
  29. package/build/src/wallets/useWallets.js +15 -9
  30. package/build/src/wallets/useWallets.js.map +1 -1
  31. package/build/src/wallets/walletConfigs.js +25 -2
  32. package/build/src/wallets/walletConfigs.js.map +1 -1
  33. package/build/src/world-mini-app/WorldPayButton.js +7 -0
  34. package/build/src/world-mini-app/WorldPayButton.js.map +1 -1
  35. package/build/world.d.ts +2 -0
  36. package/package.json +2 -2
package/build/index.d.ts CHANGED
@@ -18,11 +18,15 @@ type DefaultConfigProps = {
18
18
  appIcon?: string;
19
19
  appDescription?: string;
20
20
  appUrl?: string;
21
+ /**
22
+ * RPC URL used to sponsor gas fees for transactions made with Porto wallets.
23
+ */
24
+ merchantRpcUrl?: string;
21
25
  coinbaseWalletPreference?: CoinbaseWalletParameters<"4">["preference"];
22
26
  additionalConnectors?: CreateConnectorFn[];
23
27
  } & Partial<CreateConfigParameters>;
24
28
  /** Daimo Pay recommended config, for use with wagmi's createConfig(). */
25
- declare const defaultConfig: ({ appName, appIcon, appDescription, appUrl, additionalConnectors, chains, client, ...props }: DefaultConfigProps) => CreateConfigParameters;
29
+ declare const defaultConfig: ({ appName, appIcon, appDescription, appUrl, additionalConnectors, chains, client, merchantRpcUrl, ...props }: DefaultConfigProps) => CreateConfigParameters;
26
30
 
27
31
  type useConnectCallbackProps = {
28
32
  onConnect?: ({ address, connectorId, }: {
@@ -1,5 +1,5 @@
1
1
  var name = "@daimo/pay";
2
- var version = "1.16.5";
2
+ var version = "1.16.6";
3
3
  var author = "Daimo";
4
4
  var homepage = "https://pay.daimo.com";
5
5
  var license = "BSD-2-Clause license";
@@ -31,7 +31,7 @@ var scripts = {
31
31
  lint: "eslint 'src/**/*.{js,jsx,ts,tsx}' --max-warnings=0"
32
32
  };
33
33
  var dependencies = {
34
- "@daimo/pay-common": "1.16.5",
34
+ "@daimo/pay-common": "1.16.6",
35
35
  "@solana/wallet-adapter-base": "^0.9.23",
36
36
  "@solana/wallet-adapter-react": "^0.15.35",
37
37
  "@solana/web3.js": "^1.95.4",
@@ -891,6 +891,58 @@ const Bitget = ({ ...props }) => {
891
891
  }
892
892
  );
893
893
  };
894
+ const Porto = ({ ...props }) => /* @__PURE__ */ jsxs(
895
+ "svg",
896
+ {
897
+ ...props,
898
+ xmlns: "http://www.w3.org/2000/svg",
899
+ width: "422",
900
+ height: "422",
901
+ fill: "none",
902
+ viewBox: "0 0 422 422",
903
+ children: [
904
+ /* @__PURE__ */ jsx("path", { fill: "#000", d: "M0 0h422v422H0z" }),
905
+ /* @__PURE__ */ jsxs("g", { fill: "#fff", clipPath: "url(#clip0_1_15)", children: [
906
+ /* @__PURE__ */ jsx(
907
+ "path",
908
+ {
909
+ fillOpacity: "0.5",
910
+ d: "M81 286.366c0-5.473 4.45-9.911 9.94-9.911h238.571c5.49 0 9.941 4.438 9.941 9.911v19.822c0 5.474-4.451 9.911-9.941 9.911H90.941c-5.49 0-9.941-4.437-9.941-9.911z"
911
+ }
912
+ ),
913
+ /* @__PURE__ */ jsx(
914
+ "path",
915
+ {
916
+ fillOpacity: "0.5",
917
+ fillRule: "evenodd",
918
+ d: "M90.94 234.828c-5.49 0-9.94 4.438-9.94 9.911v26.792a17.84 17.84 0 0 1 9.94-3.005h238.571a17.85 17.85 0 0 1 9.941 3.005v-26.792c0-5.473-4.451-9.911-9.941-9.911zm248.512 51.538c0-5.473-4.451-9.911-9.941-9.911H90.941c-5.49 0-9.941 4.438-9.941 9.911v19.824c0 5.474 4.45 9.911 9.94 9.911h238.571c5.49 0 9.941-4.437 9.941-9.911z",
919
+ clipRule: "evenodd"
920
+ }
921
+ ),
922
+ /* @__PURE__ */ jsx(
923
+ "path",
924
+ {
925
+ fillOpacity: "0.5",
926
+ fillRule: "evenodd",
927
+ d: "M90.94 193.201c-5.49 0-9.94 4.437-9.94 9.911v26.791a17.85 17.85 0 0 1 9.94-3.004h238.571c3.677 0 7.097 1.107 9.941 3.004v-26.791c0-5.474-4.451-9.911-9.941-9.911zm248.512 51.538c0-5.474-4.451-9.911-9.941-9.911H90.941c-5.49 0-9.941 4.437-9.941 9.911v26.791q.327-.217.662-.421a17.8 17.8 0 0 1 7.29-2.474 18 18 0 0 1 1.988-.109h238.571q1.009 0 1.987.109a17.84 17.84 0 0 1 7.954 2.895zm0 41.627c0-5.345-4.246-9.703-9.559-9.904a10 10 0 0 0-.382-.007H90.941c-5.49 0-9.941 4.438-9.941 9.911v19.822c0 5.474 4.45 9.913 9.94 9.913h238.571c5.49 0 9.941-4.439 9.941-9.913z",
928
+ clipRule: "evenodd"
929
+ }
930
+ ),
931
+ /* @__PURE__ */ jsx(
932
+ "path",
933
+ {
934
+ fillRule: "evenodd",
935
+ d: "M98.015 104C88.618 104 81 111.595 81 120.965v67.311a17.85 17.85 0 0 1 9.94-3.004h238.571c3.677 0 7.097 1.107 9.941 3.004v-67.311c0-9.37-7.619-16.965-17.015-16.965zm241.437 99.112c0-5.474-4.451-9.911-9.941-9.911H90.941c-5.49 0-9.941 4.437-9.941 9.911v26.791q.327-.217.662-.421a17.8 17.8 0 0 1 7.29-2.474 18 18 0 0 1 1.988-.109h238.571q1.009 0 1.987.109a17.8 17.8 0 0 1 7.954 2.895zm0 41.627c0-5.346-4.246-9.703-9.559-9.904a10 10 0 0 0-.382-.007H90.941c-5.49 0-9.941 4.437-9.941 9.911v26.791l.07-.047a19 19 0 0 1 1.342-.804 17.8 17.8 0 0 1 6.54-2.044l.159-.017a18 18 0 0 1 1.83-.092h238.57q.34 0 .681.013.659.024 1.306.096a17.84 17.84 0 0 1 7.954 2.895zm0 41.627c0-5.345-4.246-9.703-9.559-9.904l-.028-.001a10 10 0 0 0-.354-.006H90.941c-5.49 0-9.941 4.438-9.941 9.911v19.822c0 5.474 4.45 9.913 9.94 9.913h238.571c5.49 0 9.941-4.439 9.941-9.913z",
936
+ clipRule: "evenodd",
937
+ opacity: "0.3"
938
+ }
939
+ ),
940
+ /* @__PURE__ */ jsx("path", { d: "M269.868 131.752c0-5.474 4.45-9.912 9.94-9.912h31.81c5.49 0 9.94 4.438 9.94 9.912v29.733c0 5.474-4.45 9.911-9.94 9.911h-31.81c-5.49 0-9.94-4.437-9.94-9.911z" })
941
+ ] }),
942
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", { id: "clip0_1_15", children: /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M81 104h259v213H81z" }) }) })
943
+ ]
944
+ }
945
+ );
894
946
  const PlaceHolder = () => {
895
947
  return /* @__PURE__ */ jsx("div", { style: { width: 80, height: 80, background: "#555" } });
896
948
  };
@@ -1458,6 +1510,26 @@ const OtherWallets = ({ ...props }) => {
1458
1510
  ] })
1459
1511
  ] });
1460
1512
  };
1513
+ const World = ({ ...props }) => /* @__PURE__ */ jsxs(
1514
+ "svg",
1515
+ {
1516
+ xmlns: "http://www.w3.org/2000/svg",
1517
+ width: "32",
1518
+ height: "32",
1519
+ fill: "none",
1520
+ viewBox: "0 0 32 32",
1521
+ children: [
1522
+ /* @__PURE__ */ jsx("path", { fill: "#fff", d: "M0 0h32v32H0z" }),
1523
+ /* @__PURE__ */ jsx(
1524
+ "path",
1525
+ {
1526
+ fill: "#000",
1527
+ d: "M20.304 8.564A8.46 8.46 0 0 0 16 7.406a8.33 8.33 0 0 0-4.304 1.158 8.63 8.63 0 0 0-3.132 3.132A8.33 8.33 0 0 0 7.406 16c0 1.553.381 2.983 1.158 4.304a8.64 8.64 0 0 0 3.132 3.132A8.33 8.33 0 0 0 16 24.594a8.33 8.33 0 0 0 4.304-1.158 8.63 8.63 0 0 0 3.132-3.132A8.33 8.33 0 0 0 24.594 16a8.33 8.33 0 0 0-1.158-4.304 8.64 8.64 0 0 0-3.132-3.132M16.53 19.105c-.967 0-1.743-.272-2.342-.83a2.76 2.76 0 0 1-.804-1.39h9.262a6.6 6.6 0 0 1-.681 2.22h-5.448zM13.4 15.142c.122-.531.395-.994.79-1.376.585-.558 1.375-.844 2.342-.844h5.475c.354.695.572 1.43.654 2.22zm-3.2-2.56a6.8 6.8 0 0 1 2.424-2.465c1.021-.613 2.151-.913 3.377-.913s2.356.3 3.378.913c.517.313.994.68 1.402 1.103h-4.33q-1.472 0-2.616.612c-.762.409-1.361.967-1.784 1.69q-.45.755-.572 1.634H9.354c.109-.913.381-1.771.844-2.56zm9.179 9.301c-1.022.613-2.152.913-3.378.913s-2.356-.3-3.377-.913a6.7 6.7 0 0 1-2.425-2.465 6.6 6.6 0 0 1-.844-2.52h2.124q.123.879.572 1.635a4.54 4.54 0 0 0 1.784 1.689q1.145.612 2.615.613h4.29a7 7 0 0 1-1.361 1.062z"
1528
+ }
1529
+ )
1530
+ ]
1531
+ }
1532
+ );
1461
1533
  const Fordefi = ({ ...props }) => /* @__PURE__ */ jsxs(
1462
1534
  "svg",
1463
1535
  {
@@ -1539,8 +1611,10 @@ var Logos = {
1539
1611
  OKX,
1540
1612
  Bitget,
1541
1613
  Farcaster,
1542
- MiniPay
1614
+ MiniPay,
1615
+ World,
1616
+ Porto
1543
1617
  };
1544
1618
 
1545
- export { Argent, Backpack, Base, Bitget, Brave, Crypto, Dawn, Family, Farcaster, Frame, Frontier, ImToken, InfinityWallet, Injected, Ledger, MetaMask, MiniPay, Mock, ONTO, OtherWallets, Phantom, PlaceHolder, Rabby, Rainbow, Safe, Slope, Solflare, SquircleIcon, Steak, Trust, Unstoppable, WalletIcon, Zerion, Logos as default };
1619
+ export { Argent, Backpack, Base, Bitget, Brave, Crypto, Dawn, Family, Farcaster, Frame, Frontier, ImToken, InfinityWallet, Injected, Ledger, MetaMask, MiniPay, Mock, ONTO, OtherWallets, Phantom, PlaceHolder, Porto, Rabby, Rainbow, Safe, Slope, Solflare, SquircleIcon, Steak, Trust, Unstoppable, WalletIcon, Zerion, Logos as default };
1546
1620
  //# sourceMappingURL=logos.js.map