@flopay/shared 1.18.1 → 1.19.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/README.md +6 -2
- package/dist/card-field-labels.d.ts +43 -0
- package/dist/constants.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +1 -1
- package/dist/types.d.ts +15 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1003,6 +1003,11 @@ export interface VaultCardThemeColors {
|
|
|
1003
1003
|
* members, so omitted members never leak across live preset changes.
|
|
1004
1004
|
*/
|
|
1005
1005
|
submitButton?: VaultSubmitButtonTheme;
|
|
1006
|
+
/**
|
|
1007
|
+
* Label style mapped from `appearance.rules['.Label']`. Present only when the
|
|
1008
|
+
* rule sets at least one supported property.
|
|
1009
|
+
*/
|
|
1010
|
+
labels?: import('./card-field-labels.js').VaultLabelTheme;
|
|
1006
1011
|
}
|
|
1007
1012
|
/**
|
|
1008
1013
|
* Color forms the hosted asset accepts for expanded submit members:
|
|
@@ -1141,6 +1146,16 @@ export interface CardCaptureAdapter {
|
|
|
1141
1146
|
* No-op if unsupported.
|
|
1142
1147
|
*/
|
|
1143
1148
|
setCardBrandIcons?(show: boolean): void;
|
|
1149
|
+
/**
|
|
1150
|
+
* Show or hide the visible labels above the hosted card fields (live, no
|
|
1151
|
+
* remount). Nothing is sent until the host calls it. No-op if unsupported.
|
|
1152
|
+
*/
|
|
1153
|
+
setShowCardFieldLabels?(show: boolean): void;
|
|
1154
|
+
/**
|
|
1155
|
+
* Replace the text of the hosted card field labels (live, no remount). Only
|
|
1156
|
+
* the fields that were set are sent; `null` clears them. No-op if unsupported.
|
|
1157
|
+
*/
|
|
1158
|
+
setCardFieldLabels?(labels: import('./card-field-labels.js').CardFieldLabels | null): void;
|
|
1144
1159
|
/**
|
|
1145
1160
|
* Subscribe to the card-field lifecycle: `card_fields_ready` once per card form when the
|
|
1146
1161
|
* fields are interactive, `card_fields_failed` when they fail to load or time out. Returns
|