coinley-pay 0.15.0 → 0.17.0
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/README.md +33 -5
- package/dist/{index-_UPsyyOr.js → CoinleyPayment-DWGoIei3.js} +25451 -53297
- package/dist/QRCodePayment-MUTZ1_Va.js +860 -0
- package/dist/{appKitEVM-9Qu4uUt5.js → appKitEVM-CH55u3Is.js} +2 -2
- package/dist/{appKitSolana-B3GBXc7J.js → appKitSolana-jtnvPa0Y.js} +2 -2
- package/dist/coinley-vanilla.min.js +2 -2
- package/dist/index-ArVDuAUY.js +24126 -0
- package/dist/index-knR8SxKc.js +302 -0
- package/dist/index.esm.js +20 -20
- package/dist/index.umd.js +10 -10
- package/dist/polygon-Cno8Hbo5.js +2777 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# coinley-pay
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React and vanilla JavaScript SDK for Coinley checkout.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## React / Vite Install
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
Use the package ESM entry for React apps:
|
|
8
|
+
|
|
9
|
+
```jsx
|
|
10
|
+
import { CoinleyPayment } from 'coinley-pay';
|
|
11
|
+
import 'coinley-pay/dist/style.css';
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The React checkout is lazy-loaded from the root entry, so Vite apps do not pull
|
|
15
|
+
the full wallet/payment stack into the initial application chunk.
|
|
16
|
+
|
|
17
|
+
## PWA Builds
|
|
18
|
+
|
|
19
|
+
The SDK ESM build is split into smaller chunks so `vite-plugin-pwa` can precache
|
|
20
|
+
it with Workbox's default 2 MiB per-file limit. In the current build, the largest
|
|
21
|
+
React checkout chunk is about 1.3 MB minified.
|
|
22
|
+
|
|
23
|
+
Do not import the standalone vanilla CDN bundle in React/Vite apps. The vanilla
|
|
24
|
+
bundle is intentionally self-contained for script-tag usage and is much larger
|
|
25
|
+
than the split ESM build.
|
|
26
|
+
|
|
27
|
+
If an app intentionally uses the standalone vanilla bundle with PWA precaching,
|
|
28
|
+
configure Workbox explicitly:
|
|
29
|
+
|
|
30
|
+
```js
|
|
31
|
+
VitePWA({
|
|
32
|
+
workbox: {
|
|
33
|
+
maximumFileSizeToCacheInBytes: 7 * 1024 * 1024
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
```
|