@authvia/payment-method-create 0.2.0 → 0.2.1

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.
@@ -47,6 +47,7 @@ declare const _default: import('vue').DefineComponent<Props, {
47
47
  borderRadius: string;
48
48
  forgetHidden: boolean | string;
49
49
  intent: string;
50
+ vuetifyOverrides: string;
50
51
  restrictions: PaymentMethodRestrictions[];
51
52
  card: {
52
53
  allow?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { ComputedRef, PropType, Ref } from 'vue';
2
2
  import { PaymentMethodBillingAddress } from '../../model';
3
+ import { TermsConfig } from '../../types';
3
4
  type CreditCardPrefill = {
4
5
  cardNumber?: string;
5
6
  nameOnCard?: string;
@@ -73,6 +74,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
73
74
  required: false;
74
75
  default: any;
75
76
  };
77
+ terms: {
78
+ type: PropType<TermsConfig>;
79
+ required: false;
80
+ };
81
+ vuetifyOverrides: {
82
+ type: StringConstructor;
83
+ required: false;
84
+ };
76
85
  }>, {
77
86
  squelch: boolean;
78
87
  token: string;
@@ -97,11 +106,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
97
106
  nameOnCard: ComputedRef<string>;
98
107
  expiration: ComputedRef<string>;
99
108
  cvv: ComputedRef<string>;
109
+ termsContent: ComputedRef<string | undefined>;
100
110
  variant: string;
101
111
  submitLabel: any;
102
112
  handleSuccess: (event: unknown) => void;
103
113
  handleError: (error: unknown) => void;
104
- apiBaseUrl: string;
105
114
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("error" | "success")[], "error" | "success", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
106
115
  demoMode: {
107
116
  type: BooleanConstructor;
@@ -169,6 +178,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
169
178
  required: false;
170
179
  default: any;
171
180
  };
181
+ terms: {
182
+ type: PropType<TermsConfig>;
183
+ required: false;
184
+ };
185
+ vuetifyOverrides: {
186
+ type: StringConstructor;
187
+ required: false;
188
+ };
172
189
  }>> & Readonly<{
173
190
  onError?: ((...args: any[]) => any) | undefined;
174
191
  onSuccess?: ((...args: any[]) => any) | undefined;
@@ -51,13 +51,6 @@ declare class AuthviaPaymentMethodFormElement extends HTMLElement {
51
51
  private injectVuetifyOverrideStyles;
52
52
  private getVuetifyOverrideCss;
53
53
  private injectComponentStyles;
54
- /**
55
- * Injects ACH/dialog styles so inputs and buttons in dialogs get variable-based
56
- * styling. Always run (with and without bundle CSS) so dialog overlay content
57
- * is styled; appended last so it overrides. Scoped to .v-overlay__content for
58
- * higher specificity so it wins over bundle CSS for overlay content.
59
- */
60
- private injectDevFallbackDialogStyles;
61
54
  private injectDevVariablesStyles;
62
55
  private ensureStylesheetDependency;
63
56
  private findParentStylesheet;
@@ -82,6 +82,8 @@ export interface AuthviaPaymentMethodFormProps {
82
82
  variant?: VuetifyProps['variant'];
83
83
  color?: string;
84
84
  borderRadius?: string;
85
+ /** CSS for nested credit-card WC (`data-vuetify-overrides`); outer WC host uses the same attr for shadow injection. */
86
+ vuetifyOverrides?: string;
85
87
  paymentMethodDisplay?: PaymentMethodDisplayConfigMap;
86
88
  terms?: TermsConfig;
87
89
  forgetHidden?: boolean | string;
@@ -16,6 +16,19 @@ export declare const config: {
16
16
  * Get API endpoint URL
17
17
  */
18
18
  export declare function getApiEndpoint(path: string): string;
19
+ /**
20
+ * Default path (relative to {@link config.cdnUrl}) for the credit-card loader script.
21
+ * Matches the legacy hardcoded `/js/authvia-credit-card.js` used before env-based layout overrides.
22
+ */
23
+ export declare const DEFAULT_CREDIT_CARD_SCRIPT_PATH: string;
24
+ /**
25
+ * Resolves the `src` for the authvia-credit-card loader script via {@link getCdnUrl}.
26
+ * `VITE_APP_CDN_URL` must be a CDN base (no trailing slash required); the script path defaults to
27
+ * {@link DEFAULT_CREDIT_CARD_SCRIPT_PATH} or `VITE_APP_CREDIT_CARD_SCRIPT_PATH` when the file lives elsewhere on the CDN.
28
+ *
29
+ * @returns A non-empty string suitable for a script element `src`
30
+ */
31
+ export declare function getCreditCardScriptSrc(): string;
19
32
  /**
20
33
  * Get CDN URL for assets
21
34
  */