@authvia/payment-method-create 0.11.0 → 1.0.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 +2 -0
- package/dist/components/internal/AuthviaPaymentMethodAddAch.vue.d.ts +27 -24
- package/dist/components/internal/AuthviaPaymentMethodCard.vue.d.ts +5 -2
- package/dist/components/internal/AuthviaPaymentMethodCreditCard.vue.d.ts +12 -0
- package/dist/components/internal/AuthviaPaymentMethodOptions.vue.d.ts +29 -0
- package/dist/components/internal/ach/AchFormHorizontalFieldRow.vue.d.ts +31 -0
- package/dist/components/internal/ach/AchFormNameFieldCell.vue.d.ts +18 -0
- package/dist/components/internal/ach/AchFormPlaidBannerAndTypeToggle.vue.d.ts +0 -16
- package/dist/components/internal/ach/AchFormRoutingAccountNameFields.vue.d.ts +5 -3
- package/dist/components/internal/paymentMethodOptions/AuthviaPaymentMethodOptionsAchFlowDialogs.vue.d.ts +1 -0
- package/dist/components/internal/paymentMethodOptions/AuthviaPaymentMethodOptionsWalletFormDialog.vue.d.ts +1 -0
- package/dist/composables/ach/useAchFormSubmitFlow.d.ts +1 -0
- package/dist/composables/ach/useAuthviaPaymentMethodAddAchForm.d.ts +4 -1
- package/dist/composables/paymentMethodForm/useAuthviaPaymentMethodForm.d.ts +3 -0
- package/dist/composables/paymentMethodForm/usePaymentMethodFormChildProps.d.ts +2 -0
- package/dist/composables/paymentMethodForm/usePaymentMethodFormTheme.d.ts +1 -0
- package/dist/composables/paymentMethodOptions/useAuthviaPaymentMethodOptions.d.ts +2 -0
- package/dist/constants/avwcStylingHooks.d.ts +1 -0
- package/dist/entry/web-component.d.ts +0 -2
- package/dist/types/achForm.d.ts +4 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/paymentMethodOptions.d.ts +2 -0
- package/dist/utils/cdnBaseUrl.d.ts +6 -0
- package/dist/utils/config.d.ts +11 -12
- package/dist/vue-plugin.js +2 -2
- package/dist/vue-plugin.umd.cjs +2 -2
- package/package.json +2 -2
package/dist/utils/config.d.ts
CHANGED
|
@@ -17,25 +17,24 @@ export declare const config: {
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function getApiEndpoint(path: string): string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
20
|
+
* Published version of the `authvia-payment-method-credit-card` web component on CDN.
|
|
21
|
+
* Bump when that WC is released; must match the folder CI deploys to on the CDN.
|
|
22
22
|
*/
|
|
23
|
-
export declare const
|
|
23
|
+
export declare const CREDIT_CARD_WC_VERSION: string;
|
|
24
|
+
/** Default credit-card loader path on the CDN (relative to {@link config.cdnUrl}). */
|
|
24
25
|
export declare const DEFAULT_CREDIT_CARD_SCRIPT_PATH: string;
|
|
25
|
-
/** Nonprod CDN URL for the credit-card script. */
|
|
26
|
-
export declare const NONPROD_CREDIT_CARD_SCRIPT_PATH: string;
|
|
27
|
-
/** Production CDN URL for the credit-card script. */
|
|
28
|
-
export declare const PROD_CREDIT_CARD_SCRIPT_URL: string;
|
|
29
26
|
/**
|
|
30
|
-
* Resolves the `src` for the authvia-credit-card loader
|
|
27
|
+
* Resolves the `src` for the authvia-credit-card loader via {@link getCdnUrl} and `VITE_APP_CDN_URL`.
|
|
31
28
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
29
|
+
* Does not read the JWT `iss` claim. Older builds picked dev / nonprod / prod CDN hosts from the
|
|
30
|
+
* token at runtime because we had no env variable to control the credit-card CDN path. We now set
|
|
31
|
+
* `VITE_APP_CDN_URL` (and {@link CREDIT_CARD_WC_VERSION}) per deploy so each bundle targets one CDN.
|
|
32
|
+
* API and Plaid hosts still follow the token via `resolveApiHost` in the web-component entry; publish
|
|
33
|
+
* separate create-widget builds (or CDN bases) when partners need both API environments from one page.
|
|
34
34
|
*
|
|
35
|
-
* @param token - JWT token string (e.g. `props.token`)
|
|
36
35
|
* @returns A non-empty string suitable for a script element `src`
|
|
37
36
|
*/
|
|
38
|
-
export declare function getCreditCardScriptSrc(
|
|
37
|
+
export declare function getCreditCardScriptSrc(): string;
|
|
39
38
|
/**
|
|
40
39
|
* Get CDN URL for assets
|
|
41
40
|
*/
|