@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.
- package/dist/components/AuthviaPaymentMethodForm.vue.d.ts +1 -0
- package/dist/components/internal/AuthviaPaymentMethodCreditCard.vue.d.ts +18 -1
- package/dist/entry/web-component.d.ts +0 -7
- package/dist/types/index.d.ts +2 -0
- package/dist/utils/config.d.ts +13 -0
- package/dist/vue-plugin.js +2 -2
- package/dist/vue-plugin.umd.cjs +2 -2
- package/package.json +1 -1
|
@@ -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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/utils/config.d.ts
CHANGED
|
@@ -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
|
*/
|