@wlloyalty/wll-react-sdk 1.7.0 → 1.8.0-alpha.20260513055010.f309de3
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/README.md +5 -5
- package/dist/index.d.ts +6 -1
- package/dist/native.js +391 -1314
- package/dist/native.js.map +1 -1
- package/dist/types/components/atoms/Chip/Chip.stories.d.ts +3 -3
- package/dist/types/components/atoms/Icon/Icon.stories.d.ts +4 -4
- package/dist/types/components/atoms/ProgressBar/ProgressBar.stories.d.ts +5 -5
- package/dist/types/components/atoms/ProgressiveImage/ProgressiveImage.stories.d.ts +1 -1
- package/dist/types/components/molecules/Carousel/Carousel.stories.d.ts +3 -3
- package/dist/types/components/molecules/Grid/Grid.stories.d.ts +2 -2
- package/dist/types/components/molecules/ProgressIndicator/ProgressIndicator.stories.d.ts +4 -4
- package/dist/types/components/molecules/SectionHeader/SectionHeader.stories.d.ts +1 -1
- package/dist/types/components/organisms/BadgeTile/BadgeTile.stories.d.ts +6 -6
- package/dist/types/components/organisms/BannerTile/BannerTile.stories.d.ts +3 -3
- package/dist/types/components/organisms/ContentTile/ContentTile.stories.d.ts +17 -17
- package/dist/types/components/organisms/PointsTile/PointsTile.stories.d.ts +12 -12
- package/dist/types/components/organisms/RewardCategoryTile/RewardCategoryTile.stories.d.ts +7 -7
- package/dist/types/components/organisms/RewardTile/RewardTile.stories.d.ts +15 -6
- package/dist/types/components/organisms/RewardTile/index.d.ts +1 -0
- package/dist/types/components/organisms/RewardTile/reward-tile-status.d.ts +7 -0
- package/dist/types/components/organisms/RoundupTile/RoundupTile.stories.d.ts +10 -10
- package/dist/types/components/organisms/Section/Section.stories.d.ts +4 -4
- package/dist/types/components/organisms/TierTileUpdated/TierTileUpdated.stories.d.ts +10 -10
- package/dist/types/components/organisms/VenueTile/VenueTile.stories.d.ts +6 -6
- package/dist/types/types/tile.d.ts +4 -0
- package/dist/web.js +478 -85
- package/dist/web.js.map +1 -1
- package/package.json +16 -14
package/README.md
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
[](https://conventionalcommits.org)
|
|
6
6
|
[](https://reactjs.org/)
|
|
7
|
-
[](https://reactnative.dev/)
|
|
8
8
|
|
|
9
9
|
## ✨ Features
|
|
10
10
|
|
|
11
11
|
- 🎨 **Flexible Theming** - Full control over visual styling with automatic color derivation and responsive design system
|
|
12
|
-
- 🧩 **Composable Tiles** - Pre-built components for rewards, points, badges, and tiers that work together seamlessly
|
|
12
|
+
- 🧩 **Composable Tiles** - Pre-built components for rewards, points, badges, banners, venues, and tiers that work together seamlessly
|
|
13
13
|
- 🔌 **Platform Agnostic** - Bring your own navigation and network layer to integrate with any React application
|
|
14
14
|
- 📱 **Mobile First** - Responsive components optimized for both mobile and desktop experiences
|
|
15
15
|
- 🔒 **Secure by Design** - Built-in support for custom API integration through your own backend proxy
|
|
@@ -35,8 +35,8 @@ yarn add @wlloyalty/wll-react-sdk
|
|
|
35
35
|
|
|
36
36
|
The SDK is compatible with:
|
|
37
37
|
|
|
38
|
-
- React:
|
|
39
|
-
- React Native: >=0.
|
|
38
|
+
- React: >=18.0.0
|
|
39
|
+
- React Native: >=0.77.0
|
|
40
40
|
|
|
41
41
|
Please ensure your project meets these version requirements for optimal compatibility.
|
|
42
42
|
|
|
@@ -140,7 +140,7 @@ The script will generate a new component with the proper file structure and boil
|
|
|
140
140
|
|
|
141
141
|
MIT License - See [LICENSE](LICENSE) for more information.
|
|
142
142
|
|
|
143
|
-
Copyright (c)
|
|
143
|
+
Copyright (c) 2026 WLL
|
|
144
144
|
|
|
145
145
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
146
146
|
|
package/dist/index.d.ts
CHANGED
|
@@ -203,6 +203,10 @@ declare class RewardTileConfig {
|
|
|
203
203
|
priority: number;
|
|
204
204
|
availability: Availability;
|
|
205
205
|
purchasable: boolean;
|
|
206
|
+
stockCapacity?: number;
|
|
207
|
+
stockConsumed?: number;
|
|
208
|
+
outOfStockMessage?: string;
|
|
209
|
+
stockRemainingMessage?: string;
|
|
206
210
|
tier: string | null;
|
|
207
211
|
category: RewardCategory;
|
|
208
212
|
discounts: any[];
|
|
@@ -1024,4 +1028,5 @@ declare const useInitialGroupFetch: ({ id, setGroupData, }: UseInitialGroupFetch
|
|
|
1024
1028
|
|
|
1025
1029
|
declare const useNavigation: (config: NavigationConfig) => (link: string, ctaTarget: CTALinkTarget) => Promise<void>;
|
|
1026
1030
|
|
|
1027
|
-
export {
|
|
1031
|
+
export { BUTTON_SIZE, _default$7 as BadgeTile, BadgeTileConfig, BadgeTileType, _default$6 as BannerTile, BannerTileConfig, BaseBanner, BaseTile, Button, COLOR_CONSTANTS, CTALinkTarget, Carousel, CarouselNavButton, Chip, Column, _default$5 as ContentTile, ContentTileConfig, CoreApiUrl, DIMENSION_MODES, EventEmitter, FullFlex, GRID_GAP, Grid, Group, IS_ANDROID, IS_DESKTOP, IS_IOS, IS_MOBILE, IS_WEB, Icon, Indicator, Layout, LoadingIndicator, MAX_WIDTH, _default$4 as PointsTile, PointsTileConfig, ProgressBar, ProgressIndicator, ProgressType, ProgressiveImage, Reward, _default$3 as RewardCategoryTile, RewardCategoryTileConfig, _default$2 as RewardTile, RewardTileConfig, _default$1 as RoundupTile, RoundupTileConfig, Row, SCREEN_HEIGHT, SCREEN_WIDTH, SLIDE_WIDTH, SMALL_SCREEN_WIDTH, Section, SectionHeader, SectionType, Skeleton, Spacer, StatusVariant, TABLET_SCREEN_WIDTH, Text, TierTileConfig, TierTileType, TierTile as TierTileUpdated, TileContainer, TileHeight, TileType, _default as VenueTile, VenueTileConfig, WllSdkProvider, alignMap, commonStyles, createResourceGetter, defaultTheme, desaturateColor, getAlphaDerivedColors, getDerivedColor, getDerivedColorPercentages, getDimensionMode, getDirectionalMargin, getReadableTextColor, getResponsiveValue, getStateColor, handleLastEarnedDate, justifyMap, sdkEventEmitter, shouldDesaturate, sizes, sortByPriority, themeItems, themes, transformLocale, useCreateRequestOptions, useGetGroupByID, useGetSectionByID, useGetTileByID, useGroupRefresh, useInitialGroupFetch, useInvalidateData, useMakeRequest, useNavigation, usePullToRefresh, useResponsive, useResponsiveValue, useTileSize, useWllSdk, validateTheme };
|
|
1032
|
+
export type { APIResponse$1 as APIResponse, Align, AllowedCoreApiUrl, Availability, Badge, BadgeDetail, BaseThemeObject, DerivedColors, DerivedProperties, DesaturationType, EventCallback, EventTypes, FlexDirection, ImagePropsNoSource, Justify, LayoutProps$1 as LayoutProps, NavigationConfig, NavigationType, PercentageKey, ProgessType, RewardCategory, SDKConfig, Size, TGroup, TSection, ThemeContextType, ThemeName, ThemeObject, ThemeProviderProps, TierType, Tile, TileConfig, TileSizeInfo, Variant };
|