@tonder.io/ionic-full-sdk 0.0.62 → 1.0.0-beta.develop.fcbbea8

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.
@@ -83,6 +83,8 @@ export interface InCollectorContainer {
83
83
  }
84
84
 
85
85
  export interface IInlineCustomizationOptions extends CustomizationOptions {
86
+ /** Card field styles. Uses ICardStyles with optional per-field overrides. */
87
+ styles?: ICardStyles;
86
88
  paymentButton?: {
87
89
  show?: boolean;
88
90
  text?: string;
@@ -94,11 +96,60 @@ export interface IInlineCustomizationOptions extends CustomizationOptions {
94
96
  autoSave?: boolean;
95
97
  }
96
98
  }
99
+ export interface ICardInputStyles {
100
+ base?: Record<string, any>;
101
+ focus?: Record<string, any>;
102
+ complete?: Record<string, any>;
103
+ invalid?: Record<string, any>;
104
+ empty?: Record<string, any>;
105
+ cardIcon?: Record<string, any>;
106
+ global?: Record<string, any>;
107
+ }
108
+
109
+ export interface ICardFieldStyles {
110
+ inputStyles?: ICardInputStyles;
111
+ labelStyles?: { base?: Record<string, any> };
112
+ /** Developer-facing key; translated internally to Skyflow's `errorTextStyles`. */
113
+ errorStyles?: { base?: Record<string, any> };
114
+ }
115
+
116
+ export interface ICardStyles {
117
+ /** Shared styles applied to all fields (lowest priority). */
118
+ cardForm?: ICardFieldStyles;
119
+ /** Per-field overrides (higher priority than cardForm). */
120
+ cardholderName?: ICardFieldStyles;
121
+ cardNumber?: ICardFieldStyles;
122
+ cvv?: ICardFieldStyles;
123
+ expirationMonth?: ICardFieldStyles;
124
+ expirationYear?: ICardFieldStyles;
125
+ labels?: {
126
+ nameLabel?: string;
127
+ cardLabel?: string;
128
+ cvvLabel?: string;
129
+ expiryDateLabel?: string;
130
+ };
131
+ placeholders?: {
132
+ namePlaceholder?: string;
133
+ cardPlaceholder?: string;
134
+ cvvPlaceholder?: string;
135
+ expiryMonthPlaceholder?: string;
136
+ expiryYearPlaceholder?: string;
137
+ };
138
+ /**
139
+ * Show the card-network icon inside the card number Skyflow iframe.
140
+ * Corresponds to Skyflow's `CollectElementOptions.enableCardIcon`.
141
+ * @default true
142
+ */
143
+ enableCardIcon?: boolean;
144
+ }
145
+
97
146
  export interface IEventSecureInput {
98
147
  elementType: string;
99
148
  isEmpty: boolean;
100
149
  isFocused: boolean;
101
150
  isValid: boolean;
151
+ /** Raw field value. Empty string for sensitive fields (card_number, cvv) in production. */
152
+ value: string;
102
153
  }
103
154
  export interface IInputEvents {
104
155
  onChange?: (event: IEventSecureInput) => void;
@@ -115,7 +166,11 @@ export interface ICardFormEvents {
115
166
  }
116
167
  export interface IEvents extends ICardFormEvents {}
117
168
  export interface IInlineCheckoutOptions extends IInlineCheckoutBaseOptions{
118
- styles?: Record<string, string>;
169
+ /**
170
+ * @deprecated Use `customization.styles` instead.
171
+ * Still supported for backward compatibility — if both are provided, `customization.styles` takes precedence.
172
+ */
173
+ styles?: ICardStyles;
119
174
  renderPaymentButton?: boolean;
120
175
  customization?: IInlineCustomizationOptions;
121
176
  events?: IEvents;