@wlloyalty/wll-react-sdk 1.0.35 → 1.0.38

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
@@ -189,8 +189,8 @@ declare class BannerTileConfig {
189
189
  declare class PointsTileConfig {
190
190
  title?: string | null;
191
191
  multiplier?: number;
192
- prefix?: string | null;
193
- suffix?: string | null;
192
+ pointsPrefix?: string | null;
193
+ pointsSuffix?: string | null;
194
194
  artworkUrl?: string | null;
195
195
  points?: number;
196
196
  }
@@ -459,130 +459,49 @@ type SectionHeaderProps = {
459
459
  };
460
460
  declare const SectionHeader: React__default.FC<SectionHeaderProps>;
461
461
 
462
- type BadgeTileProps = {
463
- tile: Tile;
464
- };
465
- type BadgeTileMediaProps = ImagePropsNoSource & {
466
- children?: React__default.ReactNode;
462
+ type WithTileFetchingProps = {
463
+ tile?: Tile;
464
+ tileId?: string;
467
465
  };
468
- type BadgeTileComponent = FC<BadgeTileProps> & {
469
- Media: FC<BadgeTileMediaProps>;
470
- Content: FC;
471
- Title: FC;
472
- Description: FC;
473
- DateEarned: FC;
474
- Status: FC;
475
- };
476
- declare const BadgeTile: BadgeTileComponent;
477
-
478
- declare const BannerTileCTA: FC;
479
466
 
480
- declare const BannerTileDescription: FC;
481
-
482
- type BannerTileMediaProps = {
483
- isArtworkOnly: boolean;
467
+ type BadgeTileProps = {
468
+ tile: Tile;
484
469
  };
485
- declare const BannerTileMedia: React__default.FC<BannerTileMediaProps>;
486
-
487
- declare const BannerTileTitle: FC;
470
+ declare const _default$5: (props: Omit<BadgeTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
488
471
 
489
472
  type BannerTileProps = {
490
473
  tile: Tile;
491
474
  };
492
- declare const BannerTile: React$1.FC<BannerTileProps> & {
493
- Media: typeof BannerTileMedia;
494
- Title: typeof BannerTileTitle;
495
- Description: typeof BannerTileDescription;
496
- CTA: typeof BannerTileCTA;
497
- };
498
-
499
- declare const ContentTileBody: FC;
500
-
501
- declare const ContentTileContent: FC<{
502
- children: ReactNode;
503
- }>;
504
-
505
- declare const ContentTileHeader: FC;
506
-
507
- declare const ContentTileMedia: FC;
508
-
509
- declare const ContentTileRoot: FC<{
510
- children: ReactNode;
511
- }>;
475
+ declare const _default$4: (props: Omit<BannerTileProps, "tile"> & WithTileFetchingProps) => React$1.JSX.Element;
512
476
 
513
477
  type ContentTileProps = {
514
478
  tile: Tile;
515
479
  };
516
- type ContentTileComponent = FC<ContentTileProps> & {
517
- Root: typeof ContentTileRoot;
518
- Media: typeof ContentTileMedia;
519
- Content: typeof ContentTileContent;
520
- Header: typeof ContentTileHeader;
521
- Body: typeof ContentTileBody;
522
- };
523
- declare const ContentTile: ContentTileComponent;
480
+ declare const _default$3: (props: Omit<ContentTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
524
481
 
525
482
  type GroupProps = {
526
483
  id: string;
527
484
  };
528
485
  declare const Group: React__default.FC<GroupProps>;
529
486
 
530
- declare const PointsTileFormattedPoints: React$1.FC;
531
-
532
- declare const PointsTileTitle: FC;
533
-
534
- type PointsTileMediaProps = {
535
- isFullSize: boolean;
536
- };
537
- declare const PointsTileMedia: FC<PointsTileMediaProps>;
538
-
539
487
  type PointsTileProps = {
540
488
  tile: Tile;
541
489
  };
542
- declare const PointsTile: FC<PointsTileProps> & {
543
- Title: typeof PointsTileTitle;
544
- Points: typeof PointsTileFormattedPoints;
545
- Media: typeof PointsTileMedia;
546
- };
547
-
548
- declare const RewardCategoryHeader: FC;
549
-
550
- declare const RewardCategoryMedia: FC;
490
+ declare const _default$2: (props: Omit<PointsTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
551
491
 
552
492
  type RewardCategoryTileProps = {
553
493
  tile: Tile;
554
494
  };
555
- declare const RewardCategoryTile: React$1.FC<RewardCategoryTileProps> & {
556
- Header: typeof RewardCategoryHeader;
557
- Media: typeof RewardCategoryMedia;
558
- };
559
-
560
- declare const RewardTileChevron: FC;
561
-
562
- declare const RewardTileSummary: FC;
563
-
564
- type RewardTileMediaProps = {
565
- isArtworkOnly: boolean;
566
- };
567
- declare const RewardTileMedia: FC<RewardTileMediaProps>;
568
-
569
- declare const RewardTilePoints: FC;
570
-
571
- declare const RewardTileTitle: FC;
495
+ declare const _default$1: (props: Omit<RewardCategoryTileProps, "tile"> & WithTileFetchingProps) => React$1.JSX.Element;
572
496
 
573
497
  type RewardTileProps = {
574
498
  tile: Tile;
575
499
  };
576
- declare const RewardTile: FC<RewardTileProps> & {
577
- Media: typeof RewardTileMedia;
578
- Title: typeof RewardTileTitle;
579
- Summary: typeof RewardTileSummary;
580
- Points: typeof RewardTilePoints;
581
- Chevron: typeof RewardTileChevron;
582
- };
500
+ declare const _default: (props: Omit<RewardTileProps, "tile"> & WithTileFetchingProps) => React__default.JSX.Element;
583
501
 
584
502
  type SectionProps = {
585
- section: TSection;
503
+ section?: TSection;
504
+ sectionId?: string;
586
505
  };
587
506
  declare const Section: React__default.FC<SectionProps>;
588
507
 
@@ -649,4 +568,4 @@ type WllSdkProviderProps = {
649
568
  declare const WllSdkProvider: React__default.FC<WllSdkProviderProps>;
650
569
  declare const useWllSdk: () => WllSdkContextType;
651
570
 
652
- export { type APIResponse, type Availability, type Badge, type BadgeDetail, BadgeTile, BadgeTileConfig, BadgeTileType, BannerTile, BannerTileConfig, BaseBanner, type BaseThemeObject, BaseTile, Button, CTALinkTarget, Carousel, Column, Column$1 as Content, ContentTile, ContentTileConfig, type DerivedProperties, FlexBox, Grid, Group, Icon, type ImagePropsNoSource, Indicator, type LayoutProps, LoadingIndicator, type NavigationConfig, type NavigationType, PointsTile, PointsTileConfig, type ProgessType, ProgressBar, ProgressIndicator, ProgressType, ProgressiveImage, Reward, type RewardCategory, RewardCategoryTile, RewardCategoryTileConfig, RewardTile, RewardTileConfig, Row, RowHeader, type SDKConfig, Section, SectionHeader, SectionType, type Size, Skeleton, Stack, type TGroup, type TSection, Text, type ThemeContextType, type ThemeObject, type ThemeProviderProps, TierTileConfig, TierTileType, TierTile as TierTileUpdated, type TierType, type Tile, type TileConfig, TileContainer, TileHeight, TileType, type Variant, WllSdkProvider, useWllSdk };
571
+ export { type APIResponse, type Availability, type Badge, type BadgeDetail, _default$5 as BadgeTile, BadgeTileConfig, BadgeTileType, _default$4 as BannerTile, BannerTileConfig, BaseBanner, type BaseThemeObject, BaseTile, Button, CTALinkTarget, Carousel, Column, Column$1 as Content, _default$3 as ContentTile, ContentTileConfig, type DerivedProperties, FlexBox, Grid, Group, Icon, type ImagePropsNoSource, Indicator, type LayoutProps, LoadingIndicator, type NavigationConfig, type NavigationType, _default$2 as PointsTile, PointsTileConfig, type ProgessType, ProgressBar, ProgressIndicator, ProgressType, ProgressiveImage, Reward, type RewardCategory, _default$1 as RewardCategoryTile, RewardCategoryTileConfig, _default as RewardTile, RewardTileConfig, Row, RowHeader, type SDKConfig, Section, SectionHeader, SectionType, type Size, Skeleton, Stack, type TGroup, type TSection, Text, type ThemeContextType, type ThemeObject, type ThemeProviderProps, TierTileConfig, TierTileType, TierTile as TierTileUpdated, type TierType, type Tile, type TileConfig, TileContainer, TileHeight, TileType, type Variant, WllSdkProvider, useWllSdk };