@lydianpay/sdk-web 1.1.7 → 2.0.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 +9 -2
- package/dist/chunks/index-D5jbTFJf.js +24243 -0
- package/dist/chunks/index-Pk4K_3hb.js +3579 -0
- package/dist/chunks/metamask-sdk-DvI9y8Xc.js +15037 -0
- package/dist/chunks/scanQrBackground-DWbKIxRa.js +4 -0
- package/dist/lydian.js +1 -0
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/ui/Checkout.d.ts +28 -12
- package/dist/types/ui/buttons/optionButton.d.ts +3 -1
- package/dist/types/ui/components/copyField.d.ts +2 -1
- package/dist/types/ui/components/icons.d.ts +7 -1
- package/dist/types/ui/components/logoHeader.d.ts +1 -0
- package/dist/types/ui/components/summaryRowGroup.d.ts +7 -0
- package/dist/types/ui/countdownBanner.d.ts +30 -0
- package/dist/types/ui/networkListHelpers.d.ts +2 -3
- package/dist/types/ui/scanQrBackground.d.ts +1 -0
- package/dist/types/ui/scanQrPanelBackground.d.ts +7 -0
- package/dist/types/ui/sessionHelpers.d.ts +9 -0
- package/package.json +10 -2
- package/dist/lydian.iife.js +0 -737
package/README.md
CHANGED
|
@@ -33,13 +33,20 @@ import '@lydianpay/sdk-web';
|
|
|
33
33
|
```html
|
|
34
34
|
<script
|
|
35
35
|
type="module"
|
|
36
|
-
src="https://cdn.jsdelivr.net/npm/@lydianpay/sdk-web@
|
|
36
|
+
src="https://cdn.jsdelivr.net/npm/@lydianpay/sdk-web@2.0.0/dist/lydian.js"
|
|
37
37
|
></script>
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
Pin a version (e.g. `@
|
|
40
|
+
Pin a version (e.g. `@2.0.0`) in production so an upstream release can't change
|
|
41
41
|
your checkout unexpectedly.
|
|
42
42
|
|
|
43
|
+
Since v2 the SDK ships as ES modules only: the entry registers
|
|
44
|
+
`window.Lydian` and `<lydian-checkout>` exactly as before, and the heavy
|
|
45
|
+
wallet SDKs load as separate chunks only when a customer picks that wallet
|
|
46
|
+
(the CDN serves the chunks alongside the entry). The v1 single-file bundle
|
|
47
|
+
(`dist/lydian.iife.js`) no longer exists — if you are upgrading a script tag
|
|
48
|
+
from v1, change the file name to `lydian.js` and keep `type="module"`.
|
|
49
|
+
|
|
43
50
|
## Quick start
|
|
44
51
|
|
|
45
52
|
Place the checkout element where you want the UI, then initialize the SDK:
|