@wlloyalty/wll-react-sdk 1.0.94 → 1.0.95
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 +19 -0
- package/dist/native.js.map +1 -1
- package/dist/web.js +32 -13
- 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.');
|
|
@@ -8229,6 +8229,7 @@ var isValidColor = function (color) {
|
|
|
8229
8229
|
*/
|
|
8230
8230
|
var validateTheme = function (theme) {
|
|
8231
8231
|
var requiredColors = ['accent', 'background', 'primary', 'surface', 'surfaceText', 'positive', 'negative', 'text'];
|
|
8232
|
+
// fontFamily is optional - it has a default value in defaultTheme
|
|
8232
8233
|
return requiredColors.every(function (color) {
|
|
8233
8234
|
return theme[color] && isValidColor(theme[color]);
|
|
8234
8235
|
});
|
|
@@ -8457,6 +8458,14 @@ var createTheme = function (baseTheme) {
|
|
|
8457
8458
|
baseTheme = {};
|
|
8458
8459
|
}
|
|
8459
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
|
+
}
|
|
8460
8469
|
return __assign(__assign({}, mergedTheme), {
|
|
8461
8470
|
sizes: sizes,
|
|
8462
8471
|
derivedBackground: getDerivedColor(mergedTheme.background),
|
|
@@ -8492,6 +8501,16 @@ var WllSdkProvider = function (_a) {
|
|
|
8492
8501
|
if (!validateTheme(themeToUse)) {
|
|
8493
8502
|
console.warn('Invalid theme provided. Some required colors are missing or invalid.');
|
|
8494
8503
|
}
|
|
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
|
+
}
|
|
8495
8514
|
setThemeState(createTheme(themeToUse));
|
|
8496
8515
|
}, [providedTheme]);
|
|
8497
8516
|
var setTheme = React.useCallback(function (newTheme) {
|
|
@@ -10913,9 +10932,9 @@ function _isEntirelyVisible(top, bottom, viewportHeight) {
|
|
|
10913
10932
|
}
|
|
10914
10933
|
var ViewabilityHelper$1 = ViewabilityHelper;
|
|
10915
10934
|
|
|
10916
|
-
var __DEV__$
|
|
10935
|
+
var __DEV__$4 = process.env.NODE_ENV !== 'production';
|
|
10917
10936
|
var VirtualizedListContext = /*#__PURE__*/React__namespace.createContext(null);
|
|
10918
|
-
if (__DEV__$
|
|
10937
|
+
if (__DEV__$4) {
|
|
10919
10938
|
VirtualizedListContext.displayName = 'VirtualizedListContext';
|
|
10920
10939
|
}
|
|
10921
10940
|
|
|
@@ -11285,7 +11304,7 @@ Object.defineProperty(nullthrows$2.exports, '__esModule', {value: true});
|
|
|
11285
11304
|
var nullthrowsExports = nullthrows$2.exports;
|
|
11286
11305
|
var nullthrows$1 = /*@__PURE__*/getDefaultExportFromCjs(nullthrowsExports);
|
|
11287
11306
|
|
|
11288
|
-
var __DEV__$
|
|
11307
|
+
var __DEV__$3 = process.env.NODE_ENV !== 'production';
|
|
11289
11308
|
var ON_EDGE_REACHED_EPSILON = 0.001;
|
|
11290
11309
|
var _usedIndexForKey = false;
|
|
11291
11310
|
var _keylessItemComponentName = '';
|
|
@@ -11994,7 +12013,7 @@ class VirtualizedList extends StateSafePureComponent {
|
|
|
11994
12013
|
console.warn("initialScrollIndex \"" + initialScrollIndex + "\" is not valid (list has " + itemCount + " items)");
|
|
11995
12014
|
this._hasWarned.initialScrollIndex = true;
|
|
11996
12015
|
}
|
|
11997
|
-
if (__DEV__$
|
|
12016
|
+
if (__DEV__$3 && !this._hasWarned.flexWrap) {
|
|
11998
12017
|
// $FlowFixMe[underconstrained-implicit-instantiation]
|
|
11999
12018
|
var flatStyles = StyleSheet$1.flatten(this.props.contentContainerStyle);
|
|
12000
12019
|
if (flatStyles != null && flatStyles.flexWrap === 'wrap') {
|
|
@@ -13946,7 +13965,7 @@ var AnimatedWithChildren$1 = AnimatedWithChildren;
|
|
|
13946
13965
|
* @format
|
|
13947
13966
|
*/
|
|
13948
13967
|
|
|
13949
|
-
var __DEV__$
|
|
13968
|
+
var __DEV__$2 = process.env.NODE_ENV !== 'production';
|
|
13950
13969
|
var linear = t => t;
|
|
13951
13970
|
|
|
13952
13971
|
/**
|
|
@@ -13959,7 +13978,7 @@ function createInterpolation(config) {
|
|
|
13959
13978
|
}
|
|
13960
13979
|
var outputRange = config.outputRange;
|
|
13961
13980
|
var inputRange = config.inputRange;
|
|
13962
|
-
if (__DEV__$
|
|
13981
|
+
if (__DEV__$2) {
|
|
13963
13982
|
checkInfiniteRange('outputRange', outputRange);
|
|
13964
13983
|
checkInfiniteRange('inputRange', inputRange);
|
|
13965
13984
|
checkValidInputRange(inputRange);
|
|
@@ -14174,7 +14193,7 @@ class AnimatedInterpolation extends AnimatedWithChildren$1 {
|
|
|
14174
14193
|
return range.map(NativeAnimatedHelper.transformDataType);
|
|
14175
14194
|
}
|
|
14176
14195
|
__getNativeConfig() {
|
|
14177
|
-
if (__DEV__$
|
|
14196
|
+
if (__DEV__$2) {
|
|
14178
14197
|
NativeAnimatedHelper.validateInterpolation(this._config);
|
|
14179
14198
|
}
|
|
14180
14199
|
return {
|
|
@@ -14463,7 +14482,7 @@ var AnimatedValue$1 = AnimatedValue;
|
|
|
14463
14482
|
* @format
|
|
14464
14483
|
*/
|
|
14465
14484
|
|
|
14466
|
-
var __DEV__ = process.env.NODE_ENV !== 'production';
|
|
14485
|
+
var __DEV__$1 = process.env.NODE_ENV !== 'production';
|
|
14467
14486
|
function attachNativeEvent(viewRef, eventName, argMapping) {
|
|
14468
14487
|
// Find animated values in `argMapping` and create an array representing their
|
|
14469
14488
|
// key path inside the `nativeEvent` object. Ex.: ['contentOffset', 'x'].
|
|
@@ -14557,7 +14576,7 @@ class AnimatedEvent {
|
|
|
14557
14576
|
__getHandler() {
|
|
14558
14577
|
var _this = this;
|
|
14559
14578
|
if (this.__isNative) {
|
|
14560
|
-
if (__DEV__) {
|
|
14579
|
+
if (__DEV__$1) {
|
|
14561
14580
|
var _validatedMapping = false;
|
|
14562
14581
|
return function () {
|
|
14563
14582
|
for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
|
|
@@ -14578,7 +14597,7 @@ class AnimatedEvent {
|
|
|
14578
14597
|
for (var _len2 = arguments.length, args = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) {
|
|
14579
14598
|
args[_key3] = arguments[_key3];
|
|
14580
14599
|
}
|
|
14581
|
-
if (__DEV__ && !validatedMapping) {
|
|
14600
|
+
if (__DEV__$1 && !validatedMapping) {
|
|
14582
14601
|
validateMapping(_this._argMapping, args);
|
|
14583
14602
|
validatedMapping = true;
|
|
14584
14603
|
}
|