@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.
@@ -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/btc.svg`,
86
- * `assets/provider-icons/strike.png`) into a URL this host can serve. The
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 icons come out as dead `file://` links. `defineElements` passes
89
- * its own down to here.
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 icon and tutorial paths. Omitted, the packaged URLs are used —
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-CV0JlfbJ.js';
4
- export { D as DefineElementsOptions, E as ElementsWizardView, d as defineElements } from './define-elements-CV0JlfbJ.js';
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
@@ -12,7 +12,7 @@ import {
12
12
  renderCheckoutHtml,
13
13
  renderThemeToggleHtml,
14
14
  renderTransactionDetailsHtml
15
- } from "./chunk-TLX3H2MD.js";
15
+ } from "./chunk-VJBC57J6.js";
16
16
  export {
17
17
  OPENRECEIVE_CHECKOUT_ELEMENT_ATTRIBUTES,
18
18
  OPENRECEIVE_CHECKOUT_ELEMENT_EVENTS,