@wlloyalty/wll-react-sdk 1.0.98 → 1.0.99

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/native.js CHANGED
@@ -1680,8 +1680,15 @@ var validateTheme = function (theme) {
1680
1680
  'surfaceText',
1681
1681
  'text',
1682
1682
  ];
1683
- // fontFamily is optional - it has a default value in defaultTheme
1684
1683
  var missingOrInvalidColors = requiredColors.filter(function (color) { return !theme[color] || !isValidColor(theme[color]); });
1684
+ if (missingOrInvalidColors.length > 0) {
1685
+ console.warn('Theme validation failed. Missing or invalid colors:', missingOrInvalidColors.map(function (color) { return ({
1686
+ color: color,
1687
+ value: theme[color],
1688
+ exists: !!theme[color],
1689
+ isValid: theme[color] ? isValidColor(theme[color]) : false,
1690
+ }); }));
1691
+ }
1685
1692
  return missingOrInvalidColors.length === 0;
1686
1693
  };
1687
1694
  /**
@@ -1691,7 +1698,11 @@ var validateTheme = function (theme) {
1691
1698
  */
1692
1699
  var createSafeColor = function (color) {
1693
1700
  try {
1694
- return Color(color);
1701
+ var colorInstance = Color(color);
1702
+ console.log('Original color:', color);
1703
+ console.log('Color instance toString:', colorInstance.toString());
1704
+ console.log('Color instance hex:', colorInstance.hex());
1705
+ return colorInstance;
1695
1706
  }
1696
1707
  catch (error) {
1697
1708
  console.error("Invalid color value: ".concat(color), error);