@wlloyalty/wll-react-sdk 1.0.83 → 1.0.85

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.
@@ -1,6 +1,6 @@
1
1
  export declare const COLOR_CONSTANTS: {
2
2
  readonly MINIMUM_CONTRAST_RATIO: 2;
3
3
  readonly DEFAULT_LIGHTNESS_ADJUSTMENT: 0.2;
4
- readonly DESATURATION_LIGHTEN_AMOUNT: 2;
4
+ readonly DESATURATION_LIGHTEN_AMOUNT: 0.8;
5
5
  readonly DEFAULT_COLOR: "#FFFFFF";
6
6
  };
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__$4 = process.env.NODE_ENV !== 'production';
6602
+ var __DEV__$5 = 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__$4) {
6645
+ if (__DEV__$5) {
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__$4) {
6743
+ if (__DEV__$5) {
6744
6744
  var activeRecord = touchBank[touchHistory.indexOfSingleActiveTouch];
6745
6745
  if (!(activeRecord != null && activeRecord.touchActive)) {
6746
6746
  console.error('Cannot find single active touch.');
@@ -7967,7 +7967,7 @@ var defaultTheme = {
7967
7967
  var COLOR_CONSTANTS = {
7968
7968
  MINIMUM_CONTRAST_RATIO: 2,
7969
7969
  DEFAULT_LIGHTNESS_ADJUSTMENT: 0.2,
7970
- DESATURATION_LIGHTEN_AMOUNT: 2,
7970
+ DESATURATION_LIGHTEN_AMOUNT: 0.8,
7971
7971
  DEFAULT_COLOR: '#FFFFFF'
7972
7972
  };
7973
7973
 
@@ -10905,9 +10905,9 @@ function _isEntirelyVisible(top, bottom, viewportHeight) {
10905
10905
  }
10906
10906
  var ViewabilityHelper$1 = ViewabilityHelper;
10907
10907
 
10908
- var __DEV__$3 = process.env.NODE_ENV !== 'production';
10908
+ var __DEV__$4 = process.env.NODE_ENV !== 'production';
10909
10909
  var VirtualizedListContext = /*#__PURE__*/React__namespace.createContext(null);
10910
- if (__DEV__$3) {
10910
+ if (__DEV__$4) {
10911
10911
  VirtualizedListContext.displayName = 'VirtualizedListContext';
10912
10912
  }
10913
10913
 
@@ -11277,7 +11277,7 @@ Object.defineProperty(nullthrows$2.exports, '__esModule', {value: true});
11277
11277
  var nullthrowsExports = nullthrows$2.exports;
11278
11278
  var nullthrows$1 = /*@__PURE__*/getDefaultExportFromCjs(nullthrowsExports);
11279
11279
 
11280
- var __DEV__$2 = process.env.NODE_ENV !== 'production';
11280
+ var __DEV__$3 = process.env.NODE_ENV !== 'production';
11281
11281
  var ON_EDGE_REACHED_EPSILON = 0.001;
11282
11282
  var _usedIndexForKey = false;
11283
11283
  var _keylessItemComponentName = '';
@@ -11986,7 +11986,7 @@ class VirtualizedList extends StateSafePureComponent {
11986
11986
  console.warn("initialScrollIndex \"" + initialScrollIndex + "\" is not valid (list has " + itemCount + " items)");
11987
11987
  this._hasWarned.initialScrollIndex = true;
11988
11988
  }
11989
- if (__DEV__$2 && !this._hasWarned.flexWrap) {
11989
+ if (__DEV__$3 && !this._hasWarned.flexWrap) {
11990
11990
  // $FlowFixMe[underconstrained-implicit-instantiation]
11991
11991
  var flatStyles = StyleSheet$1.flatten(this.props.contentContainerStyle);
11992
11992
  if (flatStyles != null && flatStyles.flexWrap === 'wrap') {
@@ -13938,7 +13938,7 @@ var AnimatedWithChildren$1 = AnimatedWithChildren;
13938
13938
  * @format
13939
13939
  */
13940
13940
 
13941
- var __DEV__$1 = process.env.NODE_ENV !== 'production';
13941
+ var __DEV__$2 = process.env.NODE_ENV !== 'production';
13942
13942
  var linear = t => t;
13943
13943
 
13944
13944
  /**
@@ -13951,7 +13951,7 @@ function createInterpolation(config) {
13951
13951
  }
13952
13952
  var outputRange = config.outputRange;
13953
13953
  var inputRange = config.inputRange;
13954
- if (__DEV__$1) {
13954
+ if (__DEV__$2) {
13955
13955
  checkInfiniteRange('outputRange', outputRange);
13956
13956
  checkInfiniteRange('inputRange', inputRange);
13957
13957
  checkValidInputRange(inputRange);
@@ -14166,7 +14166,7 @@ class AnimatedInterpolation extends AnimatedWithChildren$1 {
14166
14166
  return range.map(NativeAnimatedHelper.transformDataType);
14167
14167
  }
14168
14168
  __getNativeConfig() {
14169
- if (__DEV__$1) {
14169
+ if (__DEV__$2) {
14170
14170
  NativeAnimatedHelper.validateInterpolation(this._config);
14171
14171
  }
14172
14172
  return {
@@ -14455,7 +14455,7 @@ var AnimatedValue$1 = AnimatedValue;
14455
14455
  * @format
14456
14456
  */
14457
14457
 
14458
- var __DEV__ = process.env.NODE_ENV !== 'production';
14458
+ var __DEV__$1 = process.env.NODE_ENV !== 'production';
14459
14459
  function attachNativeEvent(viewRef, eventName, argMapping) {
14460
14460
  // Find animated values in `argMapping` and create an array representing their
14461
14461
  // key path inside the `nativeEvent` object. Ex.: ['contentOffset', 'x'].
@@ -14549,7 +14549,7 @@ class AnimatedEvent {
14549
14549
  __getHandler() {
14550
14550
  var _this = this;
14551
14551
  if (this.__isNative) {
14552
- if (__DEV__) {
14552
+ if (__DEV__$1) {
14553
14553
  var _validatedMapping = false;
14554
14554
  return function () {
14555
14555
  for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
@@ -14570,7 +14570,7 @@ class AnimatedEvent {
14570
14570
  for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) {
14571
14571
  args[_key3] = arguments[_key3];
14572
14572
  }
14573
- if (__DEV__ && !validatedMapping) {
14573
+ if (__DEV__$1 && !validatedMapping) {
14574
14574
  validateMapping(_this._argMapping, args);
14575
14575
  validatedMapping = true;
14576
14576
  }
@@ -18838,7 +18838,6 @@ var styles$7 = StyleSheet$1.create({
18838
18838
  position: 'relative',
18839
18839
  alignItems: 'center',
18840
18840
  justifyContent: 'center',
18841
- backgroundColor: 'red',
18842
18841
  width: '100%',
18843
18842
  height: '100%'
18844
18843
  }
@@ -19475,7 +19474,6 @@ var styles$5 = StyleSheet$1.create({
19475
19474
  position: 'absolute',
19476
19475
  top: 10,
19477
19476
  right: 10,
19478
- backgroundColor: 'red',
19479
19477
  paddingHorizontal: 12,
19480
19478
  paddingVertical: 6,
19481
19479
  borderRadius: 4
@@ -20560,13 +20558,24 @@ var Grid = function (_a) {
20560
20558
  return {
20561
20559
  width: "calc(".concat(100 / columns, "% - ").concat((columns - 1) * GRID_GAP / columns, "px)"),
20562
20560
  marginBottom: GRID_GAP,
20563
- height: 'auto',
20564
- aspectRatio: 1
20561
+ height: 'auto'
20565
20562
  };
20566
20563
  } else {
20564
+ // Calculate available width accounting for screen width and section padding
20567
20565
  var availableWidth = SCREEN_WIDTH - GRID_GAP * 2;
20568
20566
  var gapSpace = (columns - 1) * GRID_GAP;
20569
20567
  var tileWidth = Math.floor((availableWidth - gapSpace) / columns);
20568
+ var halfTileHeight = Math.floor(tileWidth / 2);
20569
+ // Detailed logging for debugging
20570
+ console.log('=== GRID DEBUG ===');
20571
+ console.log("SCREEN_WIDTH: ".concat(SCREEN_WIDTH, "px, GRID_GAP: ").concat(GRID_GAP, "px"));
20572
+ console.log("Columns: ".concat(columns, ", Section padding: ").concat(GRID_GAP * 2, "px"));
20573
+ console.log("Available width: ".concat(availableWidth, "px, Gap space: ").concat(gapSpace, "px"));
20574
+ console.log("Calculated tile width: ".concat(tileWidth, "px"));
20575
+ console.log("Half tile height should be: ".concat(halfTileHeight, "px"));
20576
+ console.log("Expected full tile: ".concat(tileWidth, "x").concat(tileWidth, "px"));
20577
+ console.log("Expected half tile: ".concat(tileWidth, "x").concat(halfTileHeight, "px"));
20578
+ console.log('=== END DEBUG ===');
20570
20579
  return {
20571
20580
  width: tileWidth,
20572
20581
  marginBottom: GRID_GAP,
@@ -20678,9 +20687,8 @@ var styles$1 = StyleSheet$1.create({
20678
20687
  width: 21,
20679
20688
  height: 21,
20680
20689
  borderRadius: 9999,
20681
- backgroundColor: 'red',
20682
- alignItems: 'center',
20683
- justifyContent: 'center'
20690
+ justifyContent: 'center',
20691
+ alignItems: 'center'
20684
20692
  }
20685
20693
  });
20686
20694
 
@@ -21280,8 +21288,8 @@ var usePointsTileStyles = function (isFullSize) {
21280
21288
  justifyContent: 'center'
21281
21289
  },
21282
21290
  imageContainer: {
21283
- width: isFullSize ? '100%' : 57,
21284
- height: isFullSize ? '50%' : 57,
21291
+ width: isFullSize ? '100%' : isDesktop ? 57 : 40,
21292
+ height: isFullSize ? '50%' : isDesktop ? 57 : 40,
21285
21293
  marginBottom: isFullSize ? useResponsiveValue(theme.sizes.sm, theme.sizes.xxs, isDesktop, isTablet) : 0,
21286
21294
  backgroundColor: isFullSize ? theme.alphaDerivedPrimary[20] : theme.surface,
21287
21295
  justifyContent: 'center',
@@ -21972,11 +21980,26 @@ var TileContainer = function (_a) {
21972
21980
  }, tiles.map(function (tile, index) {
21973
21981
  var TileComponent = TILE_COMPONENTS[tile.type];
21974
21982
  var isHalfSize = useTileSize(tile).isHalfSize;
21983
+ // Log tile dimensions for debugging
21984
+ if (!__DEV__) {
21985
+ console.log("Tile ".concat(index, " (").concat(tile.id, "): ").concat(isHalfSize ? 'Half' : 'Full', " size"));
21986
+ }
21975
21987
  return /*#__PURE__*/React.createElement(View$2, {
21976
21988
  key: tile.id,
21977
21989
  style: [styles.tileContainer, isHalfSize && styles.halfTileContainer, index > 0 && {
21978
21990
  marginTop: GRID_GAP
21979
- }]
21991
+ }],
21992
+ onLayout: function (event) {
21993
+ if (__DEV__) {
21994
+ var _a = event.nativeEvent.layout,
21995
+ width = _a.width,
21996
+ height = _a.height;
21997
+ console.log("=== TILE ".concat(index, " LAYOUT ==="));
21998
+ console.log("Tile ID: ".concat(tile.id, ", Type: ").concat(tile.type));
21999
+ console.log("Is Half Size: ".concat(isHalfSize));
22000
+ console.log("Actual dimensions: ".concat(width.toFixed(2), "x").concat(height.toFixed(2), "px"));
22001
+ }
22002
+ }
21980
22003
  }, TileComponent ? /*#__PURE__*/React.createElement(TileComponent, {
21981
22004
  tile: tile
21982
22005
  }) : null);