Added support to useAutomaticColor

This commit is contained in:
Alexander Cerutti
2025-01-09 01:06:38 +01:00
parent f49eb5886a
commit 88a2ca9706

View File

@@ -274,6 +274,18 @@ export interface PassProps {
* for it. * for it.
*/ */
footerBackgroundColor?: string; footerBackgroundColor?: string;
/**
* New field for iOS 18 Event Ticket.
* Enables the automatic calculation of the
* `foregroundColor` and `labelColor` based
* on the background image in the new event
* ticket passes.
*
* If enabled, `foregroundColor` and `labelColor`
* are ignored.
*/
useAutomaticColor?: boolean;
} }
/** /**
@@ -503,6 +515,18 @@ export const OverridablePassProps = Joi.object<OverridablePassProps>({
* for it. * for it.
*/ */
footerBackgroundColor: Joi.string().regex(RGB_HEX_COLOR_REGEX), footerBackgroundColor: Joi.string().regex(RGB_HEX_COLOR_REGEX),
/**
* New field for iOS 18 Event Ticket.
* Enables the automatic calculation of the
* `foregroundColor` and `labelColor` based
* on the background image in the new event
* ticket passes.
*
* If enabled, `foregroundColor` and `labelColor`
* are ignored.
*/
useAutomaticColor: Joi.boolean(),
}).with("webServiceURL", "authenticationToken"); }).with("webServiceURL", "authenticationToken");
export const PassProps = Joi.object< export const PassProps = Joi.object<