@openreceive/browser 0.4.3 → 0.4.5

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 (31) hide show
  1. package/README.md +21 -20
  2. package/dist/{chunk-VZ7M7ZUE.js → chunk-ZTB2TOBO.js} +41 -61
  3. package/dist/headless.d.ts +27 -38
  4. package/dist/headless.js +16 -12
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.js +1 -1
  7. package/dist/{status-iwqocz21.d.ts → status-Doh8Wz4D.d.ts} +35 -33
  8. package/dist/styles.css +1 -1
  9. package/package.json +5 -6
  10. package/skills/integrate-openreceive/SKILL.md +16 -5
  11. package/skills/integrate-openreceive/references/btcpay.md +193 -0
  12. package/skills/integrate-openreceive/references/django.md +667 -0
  13. package/skills/integrate-openreceive/references/fastapi.md +537 -0
  14. package/skills/integrate-openreceive/references/fastify.md +529 -0
  15. package/skills/integrate-openreceive/references/laravel.md +658 -0
  16. package/skills/integrate-openreceive/references/next.md +580 -0
  17. package/skills/integrate-openreceive/references/node.md +33 -14
  18. package/skills/integrate-openreceive/references/php.md +598 -0
  19. package/skills/integrate-openreceive/references/rails.md +72 -27
  20. package/skills/integrate-openreceive/references/woocommerce.md +153 -0
  21. package/dist/assets/icons/btc.svg +0 -1
  22. package/dist/assets/icons/crypto.svg +0 -12
  23. package/dist/assets/icons/eth.svg +0 -1
  24. package/dist/assets/icons/lightning.svg +0 -11
  25. package/dist/assets/icons/ltc.svg +0 -1
  26. package/dist/assets/icons/sol.svg +0 -1
  27. package/dist/assets/icons/trx.svg +0 -1
  28. package/dist/assets/icons/usdc.svg +0 -1
  29. package/dist/assets/icons/usdt.svg +0 -1
  30. package/dist/assets/icons/xmr.svg +0 -1
  31. package/dist/assets/icons/xrp.svg +0 -1
package/README.md CHANGED
@@ -23,23 +23,24 @@ vue/svelte/angular wrappers. It is curated symbol-by-symbol rather than a
23
23
  re-export of the package, so a name that is not on it is package-private and
24
24
  will move without notice.
25
25
 
26
- ## Icon assets
27
-
28
- The payment-method icons (`btc`, `lightning`, `usdt`, …) are compiled into
29
- this package's JavaScript — nothing to copy, serve, or configure, under any
30
- bundler:
31
-
32
- - The custom element (`@openreceive/elements`, and the Vue/Svelte/Angular
33
- wrappers over it) draws them inline in its shadow root from
34
- `paymentIconSvgs`.
35
- - Everything that wants a URL — `@openreceive/react`, the display models,
36
- `getPaymentMethodIcon` and friends, your own `<img>` — gets the same icons
37
- from `paymentIconUrls` as `data:image/svg+xml` URIs. If your
38
- Content-Security-Policy `img-src` forbids `data:`, allow it, or pass
39
- `assetBaseUrl` / `resolveAssetUrl` and the icons are served as files
40
- instead (`dist/assets/icons/*.svg` still ships, keyed by
41
- `paymentIconPaths`).
42
-
43
- `@openreceive/provider-data`'s wallet logos and pay tutorials are files
44
- (PNG/WebP) your host serves; see
45
- [docs/guides/provider-registry.md](../../../docs/guides/provider-registry.md#assets).
26
+ ## Images
27
+
28
+ Everything the checkout draws ships inside the JavaScript: the payment-method
29
+ icons, the wallet logos and the pay tutorials. There is no image file to copy
30
+ or serve and no asset option to set. Deploy your normal JavaScript and CSS
31
+ build output, including any generated JavaScript chunks. Bundlers with code
32
+ splitting can defer tutorial screenshots until first open; single-file builds
33
+ (including the standalone checkout) include them upfront. If your
34
+ Content-Security-Policy has a strict `img-src`, allow `data:`.
35
+
36
+ - The payment-method icons (`btc`, `lightning`, `usdt`, …) are compiled into
37
+ this package: the custom element (`@openreceive/elements`, and the
38
+ Vue/Svelte/Angular wrappers over it) draws them inline in its shadow root
39
+ from `paymentIconSvgs`, and everything that wants a URL —
40
+ `@openreceive/react`, the display models, `getPaymentMethodIcon` and
41
+ friends, your own `<img>` — gets them from `paymentIconUrls` as
42
+ `data:image/svg+xml` URIs.
43
+ - The wallet logos and pay tutorials are `data:image/webp` URIs in
44
+ `@openreceive/provider-data`; `/headless` re-exports
45
+ `loadPayTutorialImages` / `payTutorialImage` for the lazy tutorial chunk.
46
+ See [docs/guides/provider-registry.md](../../../docs/guides/provider-registry.md#assets).