@wlloyalty/wll-react-sdk 1.6.20 → 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.
Files changed (30) hide show
  1. package/README.md +5 -5
  2. package/dist/index.d.ts +6 -1
  3. package/dist/native.js +406 -1327
  4. package/dist/native.js.map +1 -1
  5. package/dist/types/components/atoms/Chip/Chip.stories.d.ts +3 -3
  6. package/dist/types/components/atoms/Icon/Icon.stories.d.ts +4 -4
  7. package/dist/types/components/atoms/ProgressBar/ProgressBar.stories.d.ts +5 -5
  8. package/dist/types/components/atoms/ProgressiveImage/ProgressiveImage.stories.d.ts +1 -1
  9. package/dist/types/components/molecules/Carousel/Carousel.stories.d.ts +3 -3
  10. package/dist/types/components/molecules/Grid/Grid.stories.d.ts +2 -2
  11. package/dist/types/components/molecules/ProgressIndicator/ProgressIndicator.stories.d.ts +4 -4
  12. package/dist/types/components/molecules/SectionHeader/SectionHeader.stories.d.ts +1 -1
  13. package/dist/types/components/organisms/BadgeTile/BadgeTile.stories.d.ts +6 -6
  14. package/dist/types/components/organisms/BannerTile/BannerTile.stories.d.ts +3 -3
  15. package/dist/types/components/organisms/ContentTile/ContentTile.stories.d.ts +17 -17
  16. package/dist/types/components/organisms/PointsTile/PointsTile.stories.d.ts +12 -12
  17. package/dist/types/components/organisms/RewardCategoryTile/RewardCategoryTile.stories.d.ts +7 -7
  18. package/dist/types/components/organisms/RewardTile/RewardTile.stories.d.ts +15 -6
  19. package/dist/types/components/organisms/RewardTile/index.d.ts +1 -0
  20. package/dist/types/components/organisms/RewardTile/reward-tile-status.d.ts +7 -0
  21. package/dist/types/components/organisms/RoundupTile/RoundupTile.stories.d.ts +10 -10
  22. package/dist/types/components/organisms/Section/Section.stories.d.ts +4 -4
  23. package/dist/types/components/organisms/TierTileUpdated/TierTileUpdated.stories.d.ts +10 -10
  24. package/dist/types/components/organisms/VenueTile/VenueTile.stories.d.ts +10 -4
  25. package/dist/types/components/organisms/VenueTile/index.d.ts +1 -3
  26. package/dist/types/components/organisms/VenueTile/venue-tile-media.d.ts +1 -7
  27. package/dist/types/types/tile.d.ts +4 -0
  28. package/dist/web.js +516 -106
  29. package/dist/web.js.map +1 -1
  30. package/package.json +16 -14
package/README.md CHANGED
@@ -4,12 +4,12 @@
4
4
 
5
5
  [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white)](https://conventionalcommits.org)
6
6
  [![React Support](https://img.shields.io/badge/React-18.0.0+-61DAFB?logo=react&logoColor=white)](https://reactjs.org/)
7
- [![React Native Support](https://img.shields.io/badge/React%20Native-0.70--0.72-61DAFB?logo=react&logoColor=white)](https://reactnative.dev/)
7
+ [![React Native Support](https://img.shields.io/badge/React%20Native-0.77.0+-61DAFB?logo=react&logoColor=white)](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: ^18.0.0
39
- - React Native: >=0.70.0 <0.73.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) 2024 WLL
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 { type APIResponse$1 as APIResponse, type Align, type AllowedCoreApiUrl, type Availability, BUTTON_SIZE, type Badge, type BadgeDetail, _default$7 as BadgeTile, BadgeTileConfig, BadgeTileType, _default$6 as BannerTile, BannerTileConfig, BaseBanner, type BaseThemeObject, BaseTile, Button, COLOR_CONSTANTS, CTALinkTarget, Carousel, CarouselNavButton, Chip, Column, _default$5 as ContentTile, ContentTileConfig, CoreApiUrl, DIMENSION_MODES, type DerivedColors, type DerivedProperties, type DesaturationType, type EventCallback, EventEmitter, type EventTypes, type FlexDirection, FullFlex, GRID_GAP, Grid, Group, IS_ANDROID, IS_DESKTOP, IS_IOS, IS_MOBILE, IS_WEB, Icon, type ImagePropsNoSource, Indicator, type Justify, Layout, type LayoutProps$1 as LayoutProps, LoadingIndicator, MAX_WIDTH, type NavigationConfig, type NavigationType, type PercentageKey, _default$4 as PointsTile, PointsTileConfig, type ProgessType, ProgressBar, ProgressIndicator, ProgressType, ProgressiveImage, Reward, type RewardCategory, _default$3 as RewardCategoryTile, RewardCategoryTileConfig, _default$2 as RewardTile, RewardTileConfig, _default$1 as RoundupTile, RoundupTileConfig, Row, SCREEN_HEIGHT, SCREEN_WIDTH, type SDKConfig, SLIDE_WIDTH, SMALL_SCREEN_WIDTH, Section, SectionHeader, SectionType, type Size, Skeleton, Spacer, StatusVariant, TABLET_SCREEN_WIDTH, type TGroup, type TSection, Text, type ThemeContextType, type ThemeName, type ThemeObject, type ThemeProviderProps, TierTileConfig, TierTileType, TierTile as TierTileUpdated, type TierType, type Tile, type TileConfig, TileContainer, TileHeight, type TileSizeInfo, TileType, type Variant, _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 };
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 };