@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.
Files changed (27) hide show
  1. package/dist/components/AuthviaPaymentMethodForm.vue.d.ts +2 -0
  2. package/dist/components/internal/AuthviaPaymentMethodAddAch.vue.d.ts +27 -24
  3. package/dist/components/internal/AuthviaPaymentMethodCard.vue.d.ts +5 -2
  4. package/dist/components/internal/AuthviaPaymentMethodCreditCard.vue.d.ts +12 -0
  5. package/dist/components/internal/AuthviaPaymentMethodOptions.vue.d.ts +29 -0
  6. package/dist/components/internal/ach/AchFormHorizontalFieldRow.vue.d.ts +31 -0
  7. package/dist/components/internal/ach/AchFormNameFieldCell.vue.d.ts +18 -0
  8. package/dist/components/internal/ach/AchFormPlaidBannerAndTypeToggle.vue.d.ts +0 -16
  9. package/dist/components/internal/ach/AchFormRoutingAccountNameFields.vue.d.ts +5 -3
  10. package/dist/components/internal/paymentMethodOptions/AuthviaPaymentMethodOptionsAchFlowDialogs.vue.d.ts +1 -0
  11. package/dist/components/internal/paymentMethodOptions/AuthviaPaymentMethodOptionsWalletFormDialog.vue.d.ts +1 -0
  12. package/dist/composables/ach/useAchFormSubmitFlow.d.ts +1 -0
  13. package/dist/composables/ach/useAuthviaPaymentMethodAddAchForm.d.ts +4 -1
  14. package/dist/composables/paymentMethodForm/useAuthviaPaymentMethodForm.d.ts +3 -0
  15. package/dist/composables/paymentMethodForm/usePaymentMethodFormChildProps.d.ts +2 -0
  16. package/dist/composables/paymentMethodForm/usePaymentMethodFormTheme.d.ts +1 -0
  17. package/dist/composables/paymentMethodOptions/useAuthviaPaymentMethodOptions.d.ts +2 -0
  18. package/dist/constants/avwcStylingHooks.d.ts +1 -0
  19. package/dist/entry/web-component.d.ts +0 -2
  20. package/dist/types/achForm.d.ts +4 -0
  21. package/dist/types/index.d.ts +4 -0
  22. package/dist/types/paymentMethodOptions.d.ts +2 -0
  23. package/dist/utils/cdnBaseUrl.d.ts +6 -0
  24. package/dist/utils/config.d.ts +11 -12
  25. package/dist/vue-plugin.js +2 -2
  26. package/dist/vue-plugin.umd.cjs +2 -2
  27. package/package.json +2 -2
@@ -17,25 +17,24 @@ export declare const config: {
17
17
  */
18
18
  export declare function getApiEndpoint(path: string): string;
19
19
  /**
20
- * Default `src` for the credit-card loader script (absolute URL).
21
- * {@link getCdnUrl} does not prefix {@link config.cdnUrl} onto http(s) URLs.
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 CREDIT_CARD_SCRIPT_PATH: string;
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 script via {@link getCdnUrl}.
27
+ * Resolves the `src` for the authvia-credit-card loader via {@link getCdnUrl} and `VITE_APP_CDN_URL`.
31
28
  *
32
- * Pass the JWT token so the correct CDN environment is selected from its `iss` claim.
33
- * Falls back to {@link DEFAULT_CREDIT_CARD_SCRIPT_PATH} when `token` is omitted or has no `iss`.
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(token?: string): string;
37
+ export declare function getCreditCardScriptSrc(): string;
39
38
  /**
40
39
  * Get CDN URL for assets
41
40
  */