@rozoai/intent-pay 0.0.1 → 0.0.8

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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@rozoai/intent-pay",
3
3
  "private": false,
4
- "version": "0.0.1",
4
+ "version": "0.0.8",
5
5
  "author": "Daimo",
6
- "homepage": "https://pay.daimo.com",
6
+ "homepage": "https://github.com/RozoAI/intent-pay",
7
7
  "license": "BSD-2-Clause license",
8
8
  "description": "Seamless crypto payments. Onboard users from any chain, any coin into your app with one click.",
9
9
  "main": "./src/index.ts",
@@ -20,12 +20,6 @@
20
20
  "build",
21
21
  "README.md"
22
22
  ],
23
- "scripts": {
24
- "start": "rollup --config rollup.config.js -w",
25
- "dev": "rollup --config rollup.config.js -w",
26
- "build": "rollup --config rollup.config.js",
27
- "lint": "eslint 'src/**/*.{js,jsx,ts,tsx}' --max-warnings=0"
28
- },
29
23
  "keywords": [
30
24
  "ens",
31
25
  "react-hook",
@@ -79,5 +73,12 @@
79
73
  "rollup-plugin-peer-deps-external": "^2.2.4",
80
74
  "rollup-plugin-visualizer": "^5.5.4",
81
75
  "typescript-plugin-styled-components": "^3.0.0"
76
+ },
77
+ "scripts": {
78
+ "start": "rollup --config rollup.config.js -w",
79
+ "dev": "rollup --config rollup.config.js -w",
80
+ "build": "rollup --config rollup.config.js",
81
+ "lint": "eslint 'src/**/*.{js,jsx,ts,tsx}' --max-warnings=0",
82
+ "release": "bumpp"
82
83
  }
83
- }
84
+ }
package/src/index.ts ADDED
@@ -0,0 +1,38 @@
1
+ export type * as Types from "./types";
2
+
3
+ export { version } from "../package.json";
4
+
5
+ // Configure Daimo Pay
6
+ export { default as getDefaultConfig } from "./defaultConfig";
7
+ export { DaimoPayProvider } from "./provider/DaimoPayProvider";
8
+
9
+ // Pay button
10
+ export {
11
+ DaimoPayButton,
12
+ DaimoPayButtonCustomProps,
13
+ DaimoPayButtonProps,
14
+ DaimoPayment,
15
+ } from "./components/DaimoPayButton";
16
+
17
+ // Hooks to track payment status + UI status.
18
+ export { useDaimoPay } from "./hooks/useDaimoPay";
19
+ export { useDaimoPayStatus } from "./hooks/useDaimoPayStatus";
20
+ export { useDaimoPayUI } from "./hooks/useDaimoPayUI";
21
+
22
+ // TODO: replace with useDaimoPay() more comprehensive status.
23
+ // export { useModal as useDaimoPayModal } from "./hooks/useModal";
24
+
25
+ // For convenience, export components to show connected account.
26
+ export { default as Avatar } from "./components/Common/Avatar";
27
+ export { default as ChainIcon } from "./components/Common/Chain";
28
+ export { wallets } from "./wallets";
29
+
30
+ // Export utilities.
31
+ export * from "./utils/exports";
32
+
33
+ // Export types
34
+ export * from "./types";
35
+
36
+ // TODO: expose this more selectively.
37
+ export { usePayContext } from "./hooks/usePayContext";
38
+ export { PayContext as DaimoPayContext } from "./provider/PayContext";