@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/web.js CHANGED
@@ -6599,7 +6599,7 @@ function isPrimaryPointerDown(domEvent) {
6599
6599
  * when touches end and start again.
6600
6600
  */
6601
6601
 
6602
- var __DEV__$5 = process.env.NODE_ENV !== 'production';
6602
+ var __DEV__$4 = process.env.NODE_ENV !== 'production';
6603
6603
  var MAX_TOUCH_BANK = 20;
6604
6604
  function timestampForTouch(touch) {
6605
6605
  // The legacy internal implementation provides "timeStamp", which has been
@@ -6642,7 +6642,7 @@ function getTouchIdentifier(_ref) {
6642
6642
  if (identifier == null) {
6643
6643
  console.error('Touch object is missing identifier.');
6644
6644
  }
6645
- if (__DEV__$5) {
6645
+ if (__DEV__$4) {
6646
6646
  if (identifier > MAX_TOUCH_BANK) {
6647
6647
  console.error('Touch identifier %s is greater than maximum supported %s which causes ' + 'performance issues backfilling array locations for all of the indices.', identifier, MAX_TOUCH_BANK);
6648
6648
  }
@@ -6740,7 +6740,7 @@ class ResponderTouchHistoryStore {
6740
6740
  break;
6741
6741
  }
6742
6742
  }
6743
- if (__DEV__$5) {
6743
+ if (__DEV__$4) {
6744
6744
  var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch];
6745
6745
  if (!(activeRecord != null && activeRecord.touchActive)) {
6746
6746
  console.error('Cannot find single active touch.');
@@ -8458,14 +8458,12 @@ var createTheme = function (baseTheme) {
8458
8458
  baseTheme = {};
8459
8459
  }
8460
8460
  var mergedTheme = __assign(__assign({}, defaultTheme), baseTheme);
8461
- // Development mode logging for theme verification
8462
- if (__DEV__) {
8463
- console.debug('[WLL SDK] Theme created:', {
8464
- fontFamily: mergedTheme.fontFamily,
8465
- baseTheme: baseTheme === null || baseTheme === void 0 ? void 0 : baseTheme.fontFamily,
8466
- defaultTheme: defaultTheme.fontFamily
8467
- });
8468
- }
8461
+ // Always log theme information to help with debugging
8462
+ console.debug('[WLL SDK] Theme created:', {
8463
+ fontFamily: mergedTheme.fontFamily,
8464
+ baseTheme: baseTheme === null || baseTheme === void 0 ? void 0 : baseTheme.fontFamily,
8465
+ defaultTheme: defaultTheme.fontFamily
8466
+ });
8469
8467
  return __assign(__assign({}, mergedTheme), {
8470
8468
  sizes: sizes,
8471
8469
  derivedBackground: getDerivedColor(mergedTheme.background),
@@ -8501,16 +8499,14 @@ var WllSdkProvider = function (_a) {
8501
8499
  if (!validateTheme(themeToUse)) {
8502
8500
  console.warn('Invalid theme provided. Some required colors are missing or invalid.');
8503
8501
  }
8504
- // Development mode logging for theme updates
8505
- if (__DEV__) {
8506
- console.debug('[WLL SDK] Theme update details:', {
8507
- 'providedTheme (full)': providedTheme,
8508
- 'themeToUse.fontFamily': themeToUse.fontFamily,
8509
- 'providedTheme.fontFamily': providedTheme === null || providedTheme === void 0 ? void 0 : providedTheme.fontFamily,
8510
- 'defaultTheme.fontFamily': defaultTheme.fontFamily,
8511
- 'providedTheme keys': providedTheme ? Object.keys(providedTheme) : 'none'
8512
- });
8513
- }
8502
+ // Always log theme updates to help with debugging
8503
+ console.debug('[WLL SDK] Theme update details:', {
8504
+ 'providedTheme (full)': providedTheme,
8505
+ 'themeToUse.fontFamily': themeToUse.fontFamily,
8506
+ 'providedTheme.fontFamily': providedTheme === null || providedTheme === void 0 ? void 0 : providedTheme.fontFamily,
8507
+ 'defaultTheme.fontFamily': defaultTheme.fontFamily,
8508
+ 'providedTheme keys': providedTheme ? Object.keys(providedTheme) : 'none'
8509
+ });
8514
8510
  setThemeState(createTheme(themeToUse));
8515
8511
  }, [providedTheme]);
8516
8512
  var setTheme = React.useCallback(function (newTheme) {
@@ -10932,9 +10928,9 @@ function _isEntirelyVisible(top, bottom, viewportHeight) {
10932
10928
  }
10933
10929
  var ViewabilityHelper$1 = ViewabilityHelper;
10934
10930
 
10935
- var __DEV__$4 = process.env.NODE_ENV !== 'production';
10931
+ var __DEV__$3 = process.env.NODE_ENV !== 'production';
10936
10932
  var VirtualizedListContext = /*#__PURE__*/React__namespace.createContext(null);
10937
- if (__DEV__$4) {
10933
+ if (__DEV__$3) {
10938
10934
  VirtualizedListContext.displayName = 'VirtualizedListContext';
10939
10935
  }
10940
10936
 
@@ -11304,7 +11300,7 @@ Object.defineProperty(nullthrows$2.exports, '__esModule', {value: true});
11304
11300
  var nullthrowsExports = nullthrows$2.exports;
11305
11301
  var nullthrows$1 = /*@__PURE__*/getDefaultExportFromCjs(nullthrowsExports);
11306
11302
 
11307
- var __DEV__$3 = process.env.NODE_ENV !== 'production';
11303
+ var __DEV__$2 = process.env.NODE_ENV !== 'production';
11308
11304
  var ON_EDGE_REACHED_EPSILON = 0.001;
11309
11305
  var _usedIndexForKey = false;
11310
11306
  var _keylessItemComponentName = '';
@@ -12013,7 +12009,7 @@ class VirtualizedList extends StateSafePureComponent {
12013
12009
  console.warn("initialScrollIndex \"" + initialScrollIndex + "\" is not valid (list has " + itemCount + " items)");
12014
12010
  this._hasWarned.initialScrollIndex = true;
12015
12011
  }
12016
- if (__DEV__$3 && !this._hasWarned.flexWrap) {
12012
+ if (__DEV__$2 && !this._hasWarned.flexWrap) {
12017
12013
  // $FlowFixMe[underconstrained-implicit-instantiation]
12018
12014
  var flatStyles = StyleSheet$1.flatten(this.props.contentContainerStyle);
12019
12015
  if (flatStyles != null && flatStyles.flexWrap === 'wrap') {
@@ -13965,7 +13961,7 @@ var AnimatedWithChildren$1 = AnimatedWithChildren;
13965
13961
  * @format
13966
13962
  */
13967
13963
 
13968
- var __DEV__$2 = process.env.NODE_ENV !== 'production';
13964
+ var __DEV__$1 = process.env.NODE_ENV !== 'production';
13969
13965
  var linear = t => t;
13970
13966
 
13971
13967
  /**
@@ -13978,7 +13974,7 @@ function createInterpolation(config) {
13978
13974
  }
13979
13975
  var outputRange = config.outputRange;
13980
13976
  var inputRange = config.inputRange;
13981
- if (__DEV__$2) {
13977
+ if (__DEV__$1) {
13982
13978
  checkInfiniteRange('outputRange', outputRange);
13983
13979
  checkInfiniteRange('inputRange', inputRange);
13984
13980
  checkValidInputRange(inputRange);
@@ -14193,7 +14189,7 @@ class AnimatedInterpolation extends AnimatedWithChildren$1 {
14193
14189
  return range.map(NativeAnimatedHelper.transformDataType);
14194
14190
  }
14195
14191
  __getNativeConfig() {
14196
- if (__DEV__$2) {
14192
+ if (__DEV__$1) {
14197
14193
  NativeAnimatedHelper.validateInterpolation(this._config);
14198
14194
  }
14199
14195
  return {
@@ -14482,7 +14478,7 @@ var AnimatedValue$1 = AnimatedValue;
14482
14478
  * @format
14483
14479
  */
14484
14480
 
14485
- var __DEV__$1 = process.env.NODE_ENV !== 'production';
14481
+ var __DEV__ = process.env.NODE_ENV !== 'production';
14486
14482
  function attachNativeEvent(viewRef, eventName, argMapping) {
14487
14483
  // Find animated values in `argMapping` and create an array representing their
14488
14484
  // key path inside the `nativeEvent` object. Ex.: ['contentOffset', 'x'].
@@ -14576,7 +14572,7 @@ class AnimatedEvent {
14576
14572
  __getHandler() {
14577
14573
  var _this = this;
14578
14574
  if (this.__isNative) {
14579
- if (__DEV__$1) {
14575
+ if (__DEV__) {
14580
14576
  var _validatedMapping = false;
14581
14577
  return function () {
14582
14578
  for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
@@ -14597,7 +14593,7 @@ class AnimatedEvent {
14597
14593
  for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) {
14598
14594
  args[_key3] = arguments[_key3];
14599
14595
  }
14600
- if (__DEV__$1 && !validatedMapping) {
14596
+ if (__DEV__ && !validatedMapping) {
14601
14597
  validateMapping(_this._argMapping, args);
14602
14598
  validatedMapping = true;
14603
14599
  }