@authvia/payment-method-create 0.6.1 → 0.7.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.
@@ -1,3 +1,4 @@
1
+ export type HostRuntimeConfigKey = 'googleAPIKey' | 'pazeSDKURL' | 'paypalSDKURL' | 'paypalClientId' | 'paypalEnvironment' | 'plaidEnv';
1
2
  /**
2
3
  * Return type for useHostService composable
3
4
  * Compatible with original HostService.instance() API
@@ -1,13 +1,13 @@
1
1
  import { App } from 'vue';
2
- import { default as AuthviaPaymentMethodForm } from '../components/AuthviaPaymentMethodForm.vue';
2
+ import { default as AuthviaPaymentMethodCreate } from '../components/AuthviaPaymentMethodForm.vue';
3
3
  import { AuthviaPaymentMethodFormPluginOptions } from '../types';
4
- declare const AuthviaPaymentMethodFormPlugin: {
4
+ declare const AuthviaPaymentMethodCreatePlugin: {
5
5
  install: (app: App, options?: AuthviaPaymentMethodFormPluginOptions) => void;
6
6
  };
7
- export default AuthviaPaymentMethodFormPlugin;
8
- export { AuthviaPaymentMethodFormPlugin };
7
+ export default AuthviaPaymentMethodCreatePlugin;
8
+ export { AuthviaPaymentMethodCreatePlugin };
9
9
  export type { AuthviaPaymentMethodFormPluginOptions };
10
- export { AuthviaPaymentMethodForm };
10
+ export { AuthviaPaymentMethodCreate };
11
11
  export type { AuthviaPaymentMethodFormProps, PaymentMethodFormData, VuetifyProps, SubmitEvent, SuccessEvent, ErrorEvent, PaymentMethodResponse, ValidationError, AVError, } from '../types';
12
12
  export { ErrorHandler, ErrorCodes } from '../utils/errors';
13
13
  export { config, getApiEndpoint, getCdnUrl, isDevelopment, isProduction } from '../utils/config';
@@ -273,10 +273,4 @@ export interface AuthviaPaymentMethodFormPluginOptions {
273
273
  paypalSDKURL: string;
274
274
  paypalClientId: string;
275
275
  paypalEnvironment?: string;
276
- sentryWidgetDSN?: string;
277
- sentryWidgetRelease?: string;
278
- /** Maps to Sentry `replaysSessionSampleRate` when initializing the widget client. */
279
- sentrySampleRate?: number;
280
- /** Maps to Sentry `replaysOnErrorSampleRate` when initializing the widget client. */
281
- sentryErrorSampleRate?: number;
282
276
  }
@@ -7,10 +7,12 @@ export declare function hasPaypalClientIdInEnv(): boolean;
7
7
  * PayPal JS SDK `client-id` from `VITE_APP_PAYPAL_CLIENT_ID` only (not from props).
8
8
  */
9
9
  export declare function getPaypalClientIdFromEnv(): string;
10
+ export declare function getPaypalClientId(): string;
10
11
  /**
11
12
  * PayPal JS SDK script base URL from `VITE_PAYPAL_SDK_URL` (trimmed).
12
13
  */
13
14
  export declare function getPaypalSdkUrlFromEnv(): string;
15
+ export declare function getPaypalSdkUrl(): string;
14
16
  /**
15
17
  * True when `url` is non-empty and an absolute `http:` / `https:` URL with a host.
16
18
  * Empty or relative-looking values would yield `?client-id=...` and load the wrong origin.
@@ -0,0 +1,6 @@
1
+ export declare function resolvePaypalClientId(): string;
2
+ export declare function resolveGoogleMapsApiKey(): string;
3
+ export declare function resolvePaypalSdkUrl(): string;
4
+ export declare function resolvePazeSdkUrl(): string;
5
+ export declare function resolvePaypalEnvironment(): string;
6
+ export declare function resolvePlaidEnv(): string;
@@ -17,13 +17,6 @@ export declare function shouldSkipWidgetSentryInit(): boolean;
17
17
  * `standalone-web-component` when events go to the widget project; `lock-embed` when using the host client.
18
18
  */
19
19
  export declare function resolveWidgetIntegrationTag(): 'standalone-web-component' | 'lock-embed';
20
- /** Optional overrides from Vue plugin `app.use(plugin, options)` (hosts without matching `VITE_*` vars). */
21
- export interface WidgetSentryVueBindOverrides {
22
- dsn?: string;
23
- release?: string;
24
- replaysSessionSampleRate?: number;
25
- replaysOnErrorSampleRate?: number;
26
- }
27
20
  /**
28
21
  * Binds Sentry to a Vue app for this package.
29
22
  *
@@ -34,9 +27,8 @@ export interface WidgetSentryVueBindOverrides {
34
27
  * Call after `createApp` and **before** `app.mount`.
35
28
  *
36
29
  * @param app - Vue 3 application instance
37
- * @param overrides - Optional DSN / release / replay rates from `AuthviaPaymentMethodFormPluginOptions`
38
30
  */
39
- export declare function bindWidgetSentryToVueApp(app: App, overrides?: WidgetSentryVueBindOverrides): void;
31
+ export declare function bindWidgetSentryToVueApp(app: App): void;
40
32
  /**
41
33
  * Reports an exception to Sentry when the SDK is active, with widget tags.
42
34
  * Safe to call when Sentry was never initialized (no-op for `captureException`; optional structured debug log when enabled).
@@ -1,6 +1,6 @@
1
1
  export * from '../entry/index'
2
2
  export {}
3
- import AuthviaCustomerAuthentication from '../entry/index'
4
- export default AuthviaCustomerAuthentication
3
+ import AuthviaPaymentMethodCreate from '../entry/index'
4
+ export default AuthviaPaymentMethodCreate
5
5
  export * from '../entry/index'
6
6
  export {}