@wlloyalty/wll-react-sdk 1.5.0 → 1.6.0
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/index.d.ts +2 -1
- package/dist/native.js +8 -17
- package/dist/native.js.map +1 -1
- package/dist/types/types/wll.d.ts +1 -0
- package/dist/types/utils/styling.d.ts +1 -1
- package/dist/web.js +25 -31
- package/dist/web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare const sizes: {
|
|
|
15
15
|
readonly sm: 12;
|
|
16
16
|
readonly md: 14;
|
|
17
17
|
readonly lg: 16;
|
|
18
|
-
readonly xl:
|
|
18
|
+
readonly xl: 20;
|
|
19
19
|
readonly xxl: 24;
|
|
20
20
|
readonly xxxl: 32;
|
|
21
21
|
readonly xxxxl: 40;
|
|
@@ -81,6 +81,7 @@ declare class Reward {
|
|
|
81
81
|
summary?: string;
|
|
82
82
|
redemptionMessage?: string;
|
|
83
83
|
visibilityCriteria?: string;
|
|
84
|
+
isLocked?: boolean;
|
|
84
85
|
}
|
|
85
86
|
type RewardCategory = {
|
|
86
87
|
name: string;
|
package/dist/native.js
CHANGED
|
@@ -1675,7 +1675,7 @@ var sizes = {
|
|
|
1675
1675
|
sm: 12,
|
|
1676
1676
|
md: 14,
|
|
1677
1677
|
lg: 16,
|
|
1678
|
-
xl:
|
|
1678
|
+
xl: 20,
|
|
1679
1679
|
xxl: 24,
|
|
1680
1680
|
xxxl: 32,
|
|
1681
1681
|
xxxxl: 40,
|
|
@@ -2699,17 +2699,12 @@ var BaseBanner = function (_a) {
|
|
|
2699
2699
|
borderRadius: theme.sizes.borderRadiusLg,
|
|
2700
2700
|
},
|
|
2701
2701
|
];
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
}, onPress: handlePress, accessible: true, role: "button", accessibilityLabel: accessibilityLabel || "".concat(title, " - Click to open"), children: children }) }));
|
|
2709
|
-
}
|
|
2710
|
-
else {
|
|
2711
|
-
return (jsxRuntimeExports.jsx(BannerContext.Provider, { value: tile, children: jsxRuntimeExports.jsx(reactNative.View, { testID: testID || 'banner-tile', style: commonStyles, accessible: true, role: "article", accessibilityLabel: accessibilityLabel || title || 'Banner', children: children }) }));
|
|
2712
|
-
}
|
|
2702
|
+
return jsxRuntimeExports.jsx(BannerContext.Provider, { value: tile, children: isInteractive ? (jsxRuntimeExports.jsx(reactNative.Pressable, { testID: testID || 'banner-tile', style: function (_a) {
|
|
2703
|
+
var pressed = _a.pressed;
|
|
2704
|
+
return __spreadArray(__spreadArray([], commonStyles, true), [
|
|
2705
|
+
{ opacity: pressed ? 0.7 : 1 },
|
|
2706
|
+
], false);
|
|
2707
|
+
}, onPress: handlePress, accessible: true, role: "button", accessibilityLabel: accessibilityLabel || "".concat(title, " - Click to open"), children: children })) : (jsxRuntimeExports.jsx(reactNative.View, { testID: testID || 'banner-tile', style: commonStyles, accessible: true, role: "article", accessibilityLabel: accessibilityLabel || title || 'Banner', children: children })) });
|
|
2713
2708
|
};
|
|
2714
2709
|
var styles$6 = reactNative.StyleSheet.create({
|
|
2715
2710
|
container: {
|
|
@@ -3759,11 +3754,7 @@ var ContentTileTitle = function () {
|
|
|
3759
3754
|
if (isHalfSize) {
|
|
3760
3755
|
if (title && !body)
|
|
3761
3756
|
return 3;
|
|
3762
|
-
if (title && body)
|
|
3763
|
-
return 1;
|
|
3764
3757
|
}
|
|
3765
|
-
if (artworkUrl)
|
|
3766
|
-
return 1;
|
|
3767
3758
|
if (!body)
|
|
3768
3759
|
return 7;
|
|
3769
3760
|
return 2;
|
|
@@ -4214,7 +4205,7 @@ var Carousel = function (_a) {
|
|
|
4214
4205
|
marginTop: useResponsiveValue(theme.sizes.xxl, theme.sizes.sm, isDesktop, isTablet),
|
|
4215
4206
|
},
|
|
4216
4207
|
});
|
|
4217
|
-
return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(SectionHeader, { title: section.title, description: section.description }), jsxRuntimeExports.jsxs(reactNative.View, { ref: containerRef, style: styles.container, onLayout: function (event) {
|
|
4208
|
+
return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(SectionHeader, { title: section.title, description: section.description }), jsxRuntimeExports.jsxs(reactNative.View, { ref: containerRef, style: [styles.container, { direction: 'ltr' }], onLayout: function (event) {
|
|
4218
4209
|
var width = event.nativeEvent.layout.width;
|
|
4219
4210
|
dispatch({ type: 'SET_CONTAINER_WIDTH', payload: width });
|
|
4220
4211
|
}, children: [jsxRuntimeExports.jsxs(reactNative.View, { style: styles.carouselContainer, children: [showPrevButton && (jsxRuntimeExports.jsx(CarouselNavButton, { direction: "left", onPress: handlePrev })), jsxRuntimeExports.jsx(reactNative.ScrollView, { ref: scrollViewRef, horizontal: true, pagingEnabled: true, showsHorizontalScrollIndicator: false, onScroll: handleScroll, onMomentumScrollEnd: handleScrollEnd, scrollEventThrottle: 16, style: styles.carouselContent, contentContainerStyle: {
|