@wlloyalty/wll-react-sdk 1.0.97 → 1.0.98

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/web.js CHANGED
@@ -8230,13 +8230,9 @@ var isValidColor = function (color) {
8230
8230
  var validateTheme = function (theme) {
8231
8231
  var requiredColors = ['accent', 'background', 'primary', 'surface', 'surfaceText', 'text'];
8232
8232
  // fontFamily is optional - it has a default value in defaultTheme
8233
- // Log missing or invalid colors for debugging
8234
8233
  var missingOrInvalidColors = requiredColors.filter(function (color) {
8235
8234
  return !theme[color] || !isValidColor(theme[color]);
8236
8235
  });
8237
- if (missingOrInvalidColors.length > 0) {
8238
- console.warn('[WLL SDK] Missing or invalid required colors:', missingOrInvalidColors);
8239
- }
8240
8236
  return missingOrInvalidColors.length === 0;
8241
8237
  };
8242
8238
  /**
@@ -8463,12 +8459,6 @@ var createTheme = function (baseTheme) {
8463
8459
  baseTheme = {};
8464
8460
  }
8465
8461
  var mergedTheme = __assign(__assign({}, defaultTheme), baseTheme);
8466
- // Always log theme information to help with debugging
8467
- console.debug('[WLL SDK] Theme created:', {
8468
- fontFamily: mergedTheme.fontFamily,
8469
- baseTheme: baseTheme === null || baseTheme === void 0 ? void 0 : baseTheme.fontFamily,
8470
- defaultTheme: defaultTheme.fontFamily
8471
- });
8472
8462
  return __assign(__assign({}, mergedTheme), {
8473
8463
  sizes: sizes,
8474
8464
  derivedBackground: getDerivedColor(mergedTheme.background),
@@ -8504,14 +8494,6 @@ var WllSdkProvider = function (_a) {
8504
8494
  if (!validateTheme(themeToUse)) {
8505
8495
  console.warn('Invalid theme provided. Some required colors are missing or invalid.');
8506
8496
  }
8507
- // Always log theme updates to help with debugging
8508
- console.debug('[WLL SDK] Theme update details:', {
8509
- 'providedTheme (full)': providedTheme,
8510
- 'themeToUse.fontFamily': themeToUse.fontFamily,
8511
- 'providedTheme.fontFamily': providedTheme === null || providedTheme === void 0 ? void 0 : providedTheme.fontFamily,
8512
- 'defaultTheme.fontFamily': defaultTheme.fontFamily,
8513
- 'providedTheme keys': providedTheme ? Object.keys(providedTheme) : 'none'
8514
- });
8515
8497
  setThemeState(createTheme(themeToUse));
8516
8498
  }, [providedTheme]);
8517
8499
  var setTheme = React.useCallback(function (newTheme) {
@@ -18923,6 +18905,7 @@ var Text = function (_a) {
18923
18905
  var baseTextStyle = {
18924
18906
  fontFamily: theme.fontFamily
18925
18907
  };
18908
+ // NOTE: We must apply fontFamily as base style to ensure it's always applied
18926
18909
  return /*#__PURE__*/React__namespace.createElement(Text$3, __assign({
18927
18910
  style: [baseTextStyle, variantStyle, style]
18928
18911
  }, props));