@wlloyalty/wll-react-sdk 1.9.0 → 1.10.0-alpha.20260702101108.a9ffcd5

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 CHANGED
@@ -93,7 +93,8 @@ declare enum TileType {
93
93
  RewardCategory = "REWARD_CATEGORY",
94
94
  Tier = "TIER",
95
95
  Roundup = "ROUND_UP_BALANCE",
96
- Venue = "VENUE"
96
+ Venue = "VENUE",
97
+ Campaign = "CAMPAIGN"
97
98
  }
98
99
  declare enum TileHeight {
99
100
  Half = "HALF",
@@ -248,6 +249,45 @@ declare class TierTileConfig {
248
249
  pointsToTierSuffix?: string;
249
250
  locale: string;
250
251
  }
252
+ declare class CampaignTileConfig {
253
+ campaignId: string;
254
+ type: string;
255
+ status: string;
256
+ name: string;
257
+ description: string;
258
+ artworkUrl: string;
259
+ effectivity: {
260
+ start: Date | null;
261
+ end: Date | null;
262
+ };
263
+ progress: CampaignProgress;
264
+ missions: CampaignMission[];
265
+ }
266
+ type CampaignProgress = {
267
+ currentValue: number;
268
+ targetValue: number;
269
+ windowStart: Date | null;
270
+ windowEnd: Date | null;
271
+ optedInAt: Date | null;
272
+ completedAt: Date | null;
273
+ availableAgainAt: Date | null;
274
+ cooldownCycle: number | null;
275
+ };
276
+ type CampaignMission = {
277
+ id: string;
278
+ name: string;
279
+ description: string | null;
280
+ pictureUrl: string | null;
281
+ completionType: string;
282
+ targetValue: number;
283
+ displayStyle: string;
284
+ requiresOptIn: boolean;
285
+ lockState: string;
286
+ order: number;
287
+ duration: number | null;
288
+ cooldownDuration: number | null;
289
+ progress: CampaignProgress;
290
+ };
251
291
  type Tile = {
252
292
  id: string | null;
253
293
  type?: TileType;
@@ -258,7 +298,7 @@ type Tile = {
258
298
  configuration: TileConfig;
259
299
  priority: number;
260
300
  };
261
- declare const getConfigForTileType: (tileType: TileType) => typeof BannerTileConfig | typeof PointsTileConfig | typeof ContentTileConfig | typeof RewardTileConfig | typeof VenueTileConfig | typeof BadgeTileConfig | typeof RewardCategoryTileConfig | typeof TierTileConfig;
301
+ declare const getConfigForTileType: (tileType: TileType) => typeof BannerTileConfig | typeof PointsTileConfig | typeof ContentTileConfig | typeof RewardTileConfig | typeof VenueTileConfig | typeof BadgeTileConfig | typeof RewardCategoryTileConfig | typeof TierTileConfig | typeof CampaignTileConfig;
262
302
  type TileConfig = InstanceType<ReturnType<typeof getConfigForTileType>>;
263
303
  type TileSizeInfo = {
264
304
  isFullSize: boolean;
@@ -354,8 +394,11 @@ type ProgressBarProps = {
354
394
  variant?: Variant;
355
395
  height?: Size;
356
396
  animationDuration?: number;
397
+ currentValue?: number;
398
+ targetValue?: number;
399
+ showProgressLabel?: boolean;
357
400
  };
358
- declare const ProgressBar: ({ percentage, variant, height, animationDuration, }: ProgressBarProps) => React$1.ReactElement;
401
+ declare const ProgressBar: ({ percentage, variant, height, animationDuration, currentValue, targetValue, showProgressLabel, }: ProgressBarProps) => React$1.ReactElement;
359
402
 
360
403
  type ProgressiveImageProps = {
361
404
  source: ImageSourcePropType;
@@ -611,12 +654,17 @@ type WithTileFetchingProps = {
611
654
  type BadgeTileProps = {
612
655
  tile: Tile;
613
656
  };
614
- declare const _default$7: (props: Omit<BadgeTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
657
+ declare const _default$8: (props: Omit<BadgeTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
615
658
 
616
659
  type BannerTileProps = {
617
660
  tile: Tile;
618
661
  };
619
- declare const _default$6: (props: Omit<BannerTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
662
+ declare const _default$7: (props: Omit<BannerTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
663
+
664
+ type CampaignTileProps = {
665
+ tile: Tile;
666
+ };
667
+ declare const _default$6: (props: Omit<CampaignTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
620
668
 
621
669
  type ContentTileProps = {
622
670
  tile: Tile;
@@ -1046,5 +1094,5 @@ declare const useInitialGroupFetch: ({ id, setGroupData, }: UseInitialGroupFetch
1046
1094
 
1047
1095
  declare const useNavigation: (config: NavigationConfig) => (link: string, ctaTarget: CTALinkTarget) => Promise<void>;
1048
1096
 
1049
- 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 };
1050
- 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, Sizes, TGroup, TSection, ThemeContextType, ThemeName, ThemeObject, ThemeProviderProps, TierType, Tile, TileConfig, TileSizeInfo, Variant };
1097
+ export { BUTTON_SIZE, _default$8 as BadgeTile, BadgeTileConfig, BadgeTileType, _default$7 as BannerTile, BannerTileConfig, BaseBanner, BaseTile, Button, COLOR_CONSTANTS, CTALinkTarget, _default$6 as CampaignTile, CampaignTileConfig, 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 };
1098
+ export type { APIResponse$1 as APIResponse, Align, AllowedCoreApiUrl, Availability, Badge, BadgeDetail, BaseThemeObject, CampaignMission, CampaignProgress, DerivedColors, DerivedProperties, DesaturationType, EventCallback, EventTypes, FlexDirection, ImagePropsNoSource, Justify, LayoutProps$1 as LayoutProps, NavigationConfig, NavigationType, PercentageKey, ProgessType, RewardCategory, SDKConfig, Size, Sizes, TGroup, TSection, ThemeContextType, ThemeName, ThemeObject, ThemeProviderProps, TierType, Tile, TileConfig, TileSizeInfo, Variant };