@authvia/payment-method-create 1.0.9 → 1.0.10

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.
@@ -21,3 +21,5 @@ export interface UseHostServiceReturn {
21
21
  * Compatible with original HostService.instance() API
22
22
  */
23
23
  export declare function useHostService(): UseHostServiceReturn;
24
+ /** CDN base URL set via Vue plugin `cdnURL` option; empty until configured. */
25
+ export declare function getConfiguredHostCdnUrl(): string;
@@ -270,6 +270,8 @@ export interface PaymentMethodConfigItem {
270
270
  */
271
271
  export interface AuthviaPaymentMethodFormPluginOptions {
272
272
  apiBaseURL: string;
273
+ /** CDN origin for nested web-component assets (e.g. credit-card script). @example 'https://cdn.authvia-nonprod.com' */
274
+ cdnURL: string;
273
275
  googleAPIKey: string;
274
276
  isPlaidVisible: boolean;
275
277
  pazeSDKURL: string;
@@ -29,7 +29,7 @@ export declare const DEFAULT_CREDIT_CARD_SCRIPT_PATH: string;
29
29
  *
30
30
  * CDN and API hosts are fixed at build time via `VITE_APP_CDN_URL` and `VITE_APP_API_BASE_URL`
31
31
  * (see `vite.config.wc.ts`). Load the dev, integration, or production CDN bundle that matches
32
- * your environment. Vue plugin embeds pass `apiBaseURL` via `app.use(..., options)`.
32
+ * Vue plugin embeds pass `apiBaseURL` and `cdnURL` via `app.use(..., options)`.
33
33
  *
34
34
  * @returns A non-empty string suitable for a script element `src`
35
35
  */