@wlloyalty/wll-react-sdk 1.0.95 → 1.0.96

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
@@ -1919,14 +1919,12 @@ function useResponsive() {
1919
1919
  var createTheme = function (baseTheme) {
1920
1920
  if (baseTheme === void 0) { baseTheme = {}; }
1921
1921
  var mergedTheme = __assign(__assign({}, defaultTheme), baseTheme);
1922
- // Development mode logging for theme verification
1923
- if (__DEV__) {
1924
- console.debug('[WLL SDK] Theme created:', {
1925
- fontFamily: mergedTheme.fontFamily,
1926
- baseTheme: baseTheme === null || baseTheme === void 0 ? void 0 : baseTheme.fontFamily,
1927
- defaultTheme: defaultTheme.fontFamily
1928
- });
1929
- }
1922
+ // Always log theme information to help with debugging
1923
+ console.debug('[WLL SDK] Theme created:', {
1924
+ fontFamily: mergedTheme.fontFamily,
1925
+ baseTheme: baseTheme === null || baseTheme === void 0 ? void 0 : baseTheme.fontFamily,
1926
+ defaultTheme: defaultTheme.fontFamily,
1927
+ });
1930
1928
  return __assign(__assign({}, mergedTheme), { sizes: sizes, derivedBackground: getDerivedColor(mergedTheme.background), primaryText: getReadableTextColor(mergedTheme.primary), accentText: getReadableTextColor(mergedTheme.accent), positiveText: getReadableTextColor(mergedTheme.positive), negativeText: getReadableTextColor(mergedTheme.negative), derivedSurface: getDerivedColorPercentages(mergedTheme.surface), derivedSurfaceText: getDerivedColorPercentages(mergedTheme.surfaceText), alphaDerivedPrimary: getAlphaDerivedColors(mergedTheme.primary), alphaDerivedText: getAlphaDerivedColors(mergedTheme.text) });
1931
1929
  };
1932
1930
  var WllSdkContext = React.createContext(undefined);
@@ -1945,16 +1943,14 @@ var WllSdkProvider = function (_a) {
1945
1943
  if (!validateTheme(themeToUse)) {
1946
1944
  console.warn('Invalid theme provided. Some required colors are missing or invalid.');
1947
1945
  }
1948
- // Development mode logging for theme updates
1949
- if (__DEV__) {
1950
- console.debug('[WLL SDK] Theme update details:', {
1951
- 'providedTheme (full)': providedTheme,
1952
- 'themeToUse.fontFamily': themeToUse.fontFamily,
1953
- 'providedTheme.fontFamily': providedTheme === null || providedTheme === void 0 ? void 0 : providedTheme.fontFamily,
1954
- 'defaultTheme.fontFamily': defaultTheme.fontFamily,
1955
- 'providedTheme keys': providedTheme ? Object.keys(providedTheme) : 'none'
1956
- });
1957
- }
1946
+ // Always log theme updates to help with debugging
1947
+ console.debug('[WLL SDK] Theme update details:', {
1948
+ 'providedTheme (full)': providedTheme,
1949
+ 'themeToUse.fontFamily': themeToUse.fontFamily,
1950
+ 'providedTheme.fontFamily': providedTheme === null || providedTheme === void 0 ? void 0 : providedTheme.fontFamily,
1951
+ 'defaultTheme.fontFamily': defaultTheme.fontFamily,
1952
+ 'providedTheme keys': providedTheme ? Object.keys(providedTheme) : 'none',
1953
+ });
1958
1954
  setThemeState(createTheme(themeToUse));
1959
1955
  }, [providedTheme]);
1960
1956
  var setTheme = React.useCallback(function (newTheme) {