@authvia/payment-method-create 1.0.8 → 1.0.10

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 (29) hide show
  1. package/dist/composables/useHostService.d.ts +2 -0
  2. package/dist/constants/apiHosts.d.ts +22 -0
  3. package/dist/entry/{index.d.ts → vue-plugin.d.ts} +1 -1
  4. package/dist/entry/web-component/AuthviaPaymentMethodFormElement.d.ts +20 -0
  5. package/dist/entry/web-component/applyBuildTimeHostConfig.d.ts +4 -0
  6. package/dist/entry/web-component/constants.d.ts +12 -0
  7. package/dist/entry/web-component/dependencyRegistry.d.ts +2 -0
  8. package/dist/entry/web-component/embeddedFormHelper.d.ts +11 -0
  9. package/dist/entry/web-component/ensureDependencies.d.ts +6 -0
  10. package/dist/entry/web-component/index.d.ts +4 -0
  11. package/dist/entry/web-component/parseElementProps.d.ts +12 -0
  12. package/dist/entry/web-component/reportMissingDependencies.d.ts +7 -0
  13. package/dist/entry/web-component/semver.d.ts +5 -0
  14. package/dist/entry/web-component/styleInjection.d.ts +10 -0
  15. package/dist/entry/web-component/stylesheetManager.d.ts +20 -0
  16. package/dist/entry/web-component/types.d.ts +38 -0
  17. package/dist/entry/web-component/vueRuntimeLoader.d.ts +13 -0
  18. package/dist/types/index.d.ts +3 -1
  19. package/dist/utils/config.d.ts +5 -6
  20. package/dist/utils/errors.d.ts +1 -0
  21. package/dist/utils/normalizeApiHost.d.ts +6 -0
  22. package/dist/utils/tokenUtils.d.ts +0 -21
  23. package/dist/vue-plugin.d.ts +3 -3
  24. package/dist/vue-plugin.js +1 -1
  25. package/dist/vue-plugin.umd.cjs +1 -1
  26. package/package.json +1 -1
  27. package/dist/entry/web-component.d.ts +0 -90
  28. package/dist/utils/apiBaseUrl.d.ts +0 -7
  29. package/dist/utils/cdnBaseUrl.d.ts +0 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authvia/payment-method-create",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Authvia Payment Method Form Web Component - Payment method form built with Vue 3 and Vuetify 3",
5
5
  "type": "module",
6
6
  "main": "./dist/vue-plugin.js",
@@ -1,90 +0,0 @@
1
- import { AuthviaPaymentMethodFormProps } from '../types';
2
- type VueRuntime = typeof import('vue');
3
- type DependencyKey = 'vue-runtime' | 'vuetify-css' | 'mdi-css';
4
- type DependencyRegistry = Record<Extract<DependencyKey, 'vuetify-css' | 'mdi-css'>, {
5
- status: 'pending' | 'ready' | 'missing';
6
- href?: string;
7
- version?: string;
8
- }>;
9
- declare global {
10
- interface Window {
11
- __AUTHVIA_DEPENDENCY_REGISTRY__?: DependencyRegistry;
12
- __AUTHVIA_WEB_COMPONENT_CSS__?: string;
13
- Vue?: VueRuntime;
14
- }
15
- interface GlobalThis {
16
- Vue?: VueRuntime;
17
- }
18
- }
19
- declare class AuthviaPaymentMethodFormElement extends HTMLElement {
20
- private app;
21
- private shadow;
22
- private container;
23
- private vuetify;
24
- private vueRuntime;
25
- private dependencyObservers;
26
- private readonly bundledMdiUrl;
27
- private readonly hasBundledMdi;
28
- private hasReportedMissingDependencies;
29
- constructor();
30
- /**
31
- * Copy CSS variables from document :root and host's ancestors to host element.
32
- * This ensures demo/parent CSS variables are available inside Shadow DOM.
33
- */
34
- private copyCssVariablesFromRoot;
35
- private initializeComponent;
36
- private reportMissingDependencies;
37
- private mountComponent;
38
- private ensureDependencies;
39
- private getAttributeValue;
40
- /**
41
- * Dialog overlays mount under {@link AuthviaPaymentMethodFormElement.container}, a sibling of the
42
- * Vue form root, so they do not inherit the inner div’s inline style. Sets accent, radius, and
43
- * `getAvwcDerivedThemeVariables` on the container so teleports inherit the same tokens.
44
- */
45
- private syncContainerThemeTokens;
46
- private getComponentProps;
47
- /**
48
- * Applies resolved API host and Plaid environment to `useHostService`.
49
- * Uses `resolveApiHost` from tokenUtils, with `WC_SCRIPT_URL` as the CDN fallback.
50
- */
51
- private applyHostConfigFromToken;
52
- private dispatchCustomEvent;
53
- static get observedAttributes(): string[];
54
- connectedCallback(): void;
55
- disconnectedCallback(): void;
56
- attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
57
- private injectVuetifyOverrideStyles;
58
- private getVuetifyOverrideCss;
59
- private injectComponentStyles;
60
- private injectDevVariablesStyles;
61
- private ensureStylesheetDependency;
62
- private findParentStylesheet;
63
- private observeStylesheet;
64
- private injectStylesheetFromHref;
65
- private insertStylesheetElement;
66
- private parseVersionFromHref;
67
- private injectBundledMdi;
68
- private getDependencyRegistry;
69
- private handleMissingDependencies;
70
- private dispatchMissingDependencyEvent;
71
- private logMissingDependency;
72
- private loadVueRuntime;
73
- private getGlobalVueRuntime;
74
- private waitForGlobalVueRuntime;
75
- private cleanupDependencyObservers;
76
- private removeDependencyObserver;
77
- private isVersionSatisfied;
78
- private compareSemver;
79
- }
80
- export declare function createEmbeddedPaymentMethodForm(config: {
81
- container: HTMLElement;
82
- props?: Partial<AuthviaPaymentMethodFormProps>;
83
- onEvents?: Record<string, (e: Event) => void>;
84
- }): {
85
- element: AuthviaPaymentMethodFormElement;
86
- updateProps: (newProps: Partial<AuthviaPaymentMethodFormProps>) => void;
87
- destroy: () => void;
88
- };
89
- export { AuthviaPaymentMethodFormElement };
90
- export default AuthviaPaymentMethodFormElement;
@@ -1,7 +0,0 @@
1
- /**
2
- * Resolve the base API URL from a given hostname or the browser's current hostname.
3
- * Falls back to nonprod by default.
4
- */
5
- export declare function resolveApiBaseUrl(hostname?: string): string;
6
- export declare const API_BASE_URL: string;
7
- export default API_BASE_URL;
@@ -1,6 +0,0 @@
1
- /**
2
- * Resolve CDN base URL from hostname when VITE_APP_CDN_URL is not baked into the bundle.
3
- * Mirrors {@link resolveApiBaseUrl} so dev-authvia.io loads assets from cdn.dev-authvia.com,
4
- * not from the app origin (which returns 403 for /web-components/*).
5
- */
6
- export declare function resolveCdnBaseUrl(hostname?: string): string;