@ozura/elements 1.3.1-next.68 → 1.3.1-next.70

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.
@@ -24,7 +24,7 @@
24
24
  * ```
25
25
  */
26
26
  import { type Ref, type PropType, type ComputedRef } from 'vue';
27
- import type { TokenizeOptions, TokenResponse, BankTokenizeOptions, BankTokenResponse, FontSource, Appearance } from '../types';
27
+ import type { ElementOptions, TokenizeOptions, TokenResponse, BankTokenizeOptions, BankTokenResponse, FontSource, Appearance } from '../types';
28
28
  export interface OzElementsProps {
29
29
  /** Omit when using a test vault key from a Test project at ozuravault.com.
30
30
  * Required for production vault keys. */
@@ -40,6 +40,14 @@ export interface OzElementsProps {
40
40
  onSessionRefresh?: () => void;
41
41
  /** Called once when the vault tokenizer and all mounted field iframes are ready. */
42
42
  onReady?: () => void;
43
+ /**
44
+ * Called if the tokenizer iframe fails to signal ready within `loadTimeoutMs`.
45
+ * Use this to show a fallback UI (e.g. "Payment fields failed to load").
46
+ * Receives an optional info object with `source: 'tokenizer'`.
47
+ */
48
+ onLoadError?: (info?: {
49
+ source: 'tokenizer';
50
+ }) => void;
43
51
  /**
44
52
  * Maximum number of tokenize calls before the vault proactively refreshes the session.
45
53
  * Must match the `sessionLimit` passed to `createSession()` on your server.
@@ -94,6 +102,12 @@ export declare const OzElements: import("vue").DefineComponent<import("vue").Ext
94
102
  type: PropType<() => void>;
95
103
  default: undefined;
96
104
  };
105
+ onLoadError: {
106
+ type: PropType<(info?: {
107
+ source: "tokenizer";
108
+ }) => void>;
109
+ default: undefined;
110
+ };
97
111
  sessionLimit: {
98
112
  type: PropType<number | null>;
99
113
  default: undefined;
@@ -145,6 +159,12 @@ export declare const OzElements: import("vue").DefineComponent<import("vue").Ext
145
159
  type: PropType<() => void>;
146
160
  default: undefined;
147
161
  };
162
+ onLoadError: {
163
+ type: PropType<(info?: {
164
+ source: "tokenizer";
165
+ }) => void>;
166
+ default: undefined;
167
+ };
148
168
  sessionLimit: {
149
169
  type: PropType<number | null>;
150
170
  default: undefined;
@@ -167,6 +187,9 @@ export declare const OzElements: import("vue").DefineComponent<import("vue").Ext
167
187
  appearance: Appearance;
168
188
  onSessionRefresh: () => void;
169
189
  onReady: () => void;
190
+ onLoadError: (info?: {
191
+ source: "tokenizer";
192
+ }) => void;
170
193
  sessionLimit: number | null;
171
194
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
172
195
  export interface UseOzElementsReturn {
@@ -204,6 +227,12 @@ export interface UseOzElementsReturn {
204
227
  * @throws {Error} if called outside an <OzElements> provider
205
228
  */
206
229
  export declare function useOzElements(): UseOzElementsReturn;
230
+ /** Props accepted by all individual field components (OzCardNumber, OzExpiry, OzCvv, etc.). */
231
+ export interface OzFieldProps {
232
+ placeholder?: string;
233
+ disabled?: boolean;
234
+ style?: ElementOptions['style'];
235
+ }
207
236
  /** Card number field. Emits `change` (ElementChangeEvent), `focus`, `blur`. */
208
237
  export declare const OzCardNumber: import("vue").DefineComponent<{
209
238
  placeholder?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozura/elements",
3
- "version": "1.3.1-next.68",
3
+ "version": "1.3.1-next.70",
4
4
  "description": "PCI-compliant card tokenization SDK for the Ozura Vault — collect card data in iframe-isolated fields and tokenize without PCI scope",
5
5
  "main": "dist/oz-elements.umd.js",
6
6
  "module": "dist/oz-elements.esm.js",