@flopay/shared 1.18.0 → 1.19.0

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/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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flopay/shared",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "publishConfig": {