@wlloyalty/wll-react-sdk 1.0.84 → 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.
- package/dist/native.js +26 -1
- package/dist/native.js.map +1 -1
- package/dist/web.js +43 -15
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
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__$
|
|
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__$
|
|
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__$
|
|
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.');
|
|
@@ -10905,9 +10905,9 @@ function _isEntirelyVisible(top, bottom, viewportHeight) {
|
|
|
10905
10905
|
}
|
|
10906
10906
|
var ViewabilityHelper$1 = ViewabilityHelper;
|
|
10907
10907
|
|
|
10908
|
-
var __DEV__$
|
|
10908
|
+
var __DEV__$4 = process.env.NODE_ENV !== 'production';
|
|
10909
10909
|
var VirtualizedListContext = /*#__PURE__*/React__namespace.createContext(null);
|
|
10910
|
-
if (__DEV__$
|
|
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__$
|
|
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__$
|
|
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__$
|
|
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__$
|
|
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__$
|
|
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
|
}
|
|
@@ -20561,12 +20561,25 @@ var Grid = function (_a) {
|
|
|
20561
20561
|
height: 'auto'
|
|
20562
20562
|
};
|
|
20563
20563
|
} else {
|
|
20564
|
+
// Calculate available width accounting for screen width and section padding
|
|
20564
20565
|
var availableWidth = SCREEN_WIDTH - GRID_GAP * 2;
|
|
20565
20566
|
var gapSpace = (columns - 1) * GRID_GAP;
|
|
20566
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 ===');
|
|
20567
20579
|
return {
|
|
20568
20580
|
width: tileWidth,
|
|
20569
|
-
marginBottom: GRID_GAP
|
|
20581
|
+
marginBottom: GRID_GAP,
|
|
20582
|
+
aspectRatio: 1
|
|
20570
20583
|
};
|
|
20571
20584
|
}
|
|
20572
20585
|
}, []);
|
|
@@ -21967,11 +21980,26 @@ var TileContainer = function (_a) {
|
|
|
21967
21980
|
}, tiles.map(function (tile, index) {
|
|
21968
21981
|
var TileComponent = TILE_COMPONENTS[tile.type];
|
|
21969
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
|
+
}
|
|
21970
21987
|
return /*#__PURE__*/React.createElement(View$2, {
|
|
21971
21988
|
key: tile.id,
|
|
21972
21989
|
style: [styles.tileContainer, isHalfSize && styles.halfTileContainer, index > 0 && {
|
|
21973
21990
|
marginTop: GRID_GAP
|
|
21974
|
-
}]
|
|
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
|
+
}
|
|
21975
22003
|
}, TileComponent ? /*#__PURE__*/React.createElement(TileComponent, {
|
|
21976
22004
|
tile: tile
|
|
21977
22005
|
}) : null);
|