@openreceive/elements 0.3.2 → 0.4.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/dist/{chunk-TLX3H2MD.js → chunk-VJBC57J6.js} +179 -146
- package/dist/{define-elements-CV0JlfbJ.d.ts → define-elements-ClzBXJCH.d.ts} +8 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/wrapper-shared.d.ts +1 -1
- package/dist/wrapper-shared.js +1 -1
- package/package.json +3 -2
- package/skills/debug-openreceive-payment/SKILL.md +89 -0
- package/skills/integrate-openreceive/SKILL.md +116 -0
- package/skills/integrate-openreceive/references/node.md +484 -0
- package/skills/integrate-openreceive/references/rails.md +577 -0
|
@@ -82,11 +82,13 @@ interface ElementsWizardView {
|
|
|
82
82
|
/** Host-chosen bolt11 decoder base URL; omitted, the tutorial shows no decode link. */
|
|
83
83
|
readonly decodeLinkUrl?: string;
|
|
84
84
|
/**
|
|
85
|
-
* Rewrite a packaged asset path (`assets/icons/
|
|
86
|
-
* `assets/
|
|
85
|
+
* Rewrite a packaged asset path (`assets/provider-icons/strike.png`,
|
|
86
|
+
* `assets/pay_tutorials/strike-1.webp`) into a URL this host can serve. The
|
|
87
87
|
* packaged URLs only resolve under Vite/Rollup; every other bundler needs
|
|
88
|
-
* this or the
|
|
89
|
-
*
|
|
88
|
+
* this or the provider images come out as dead `file://` links. The
|
|
89
|
+
* payment-method icons are drawn inline from compiled-in markup and need
|
|
90
|
+
* nothing; given a resolver they are served as files through it instead.
|
|
91
|
+
* `defineElements` passes its own down to here.
|
|
90
92
|
*/
|
|
91
93
|
readonly resolveAssetUrl?: AssetUrlResolver;
|
|
92
94
|
readonly paymentHash?: string;
|
|
@@ -116,8 +118,9 @@ interface DefineElementsOptions {
|
|
|
116
118
|
readonly logger?: BrowserLoggerOption;
|
|
117
119
|
/**
|
|
118
120
|
* Element-owned, like `qrEncoder` and `logger`: how this host resolves the
|
|
119
|
-
* packaged
|
|
121
|
+
* packaged provider-image paths. Omitted, the packaged URLs are used —
|
|
120
122
|
* correct under Vite/Rollup and dead `file://` links under anything else.
|
|
123
|
+
* (Payment-method icons are compiled in and unaffected.)
|
|
121
124
|
*/
|
|
122
125
|
readonly resolveAssetUrl?: AssetUrlResolver;
|
|
123
126
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TransactionDetailsSource } from '@openreceive/browser/headless';
|
|
2
2
|
export { OPENRECEIVE_CHECKOUT_ELEMENT_ATTRIBUTES, OPENRECEIVE_CHECKOUT_ELEMENT_EVENTS, OPENRECEIVE_CHECKOUT_ELEMENT_TAG_NAME, OPENRECEIVE_THEME_TOGGLE_ELEMENT_ATTRIBUTES, OPENRECEIVE_THEME_TOGGLE_ELEMENT_EVENTS, OPENRECEIVE_THEME_TOGGLE_ELEMENT_TAG_NAME, TransactionDetailsSource, createThemeToggleElement } from '@openreceive/browser/headless';
|
|
3
|
-
import { C as CheckoutView } from './define-elements-
|
|
4
|
-
export { D as DefineElementsOptions, E as ElementsWizardView, d as defineElements } from './define-elements-
|
|
3
|
+
import { C as CheckoutView } from './define-elements-ClzBXJCH.js';
|
|
4
|
+
export { D as DefineElementsOptions, E as ElementsWizardView, d as defineElements } from './define-elements-ClzBXJCH.js';
|
|
5
5
|
|
|
6
6
|
declare function renderCheckoutHtml(view: CheckoutView): string;
|
|
7
7
|
/**
|
package/dist/index.js
CHANGED