@lystech/core 3.0.47 → 3.0.49

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
@@ -918,6 +918,42 @@ declare type RegisterUserType = {
918
918
  birthday?: string;
919
919
  };
920
920
 
921
+ export declare interface ShopCatalogCollection {
922
+ UID: string;
923
+ collectionName: string;
924
+ description?: string;
925
+ products?: ShopCatalogProduct[];
926
+ [key: string]: any;
927
+ }
928
+
929
+ export declare function ShopCatalogPage({ collections, selectedCollection, soldoutProductUIDs, renderProductCard, renderBanner, primaryColor, secondaryColor, itemsPerPage, defaultShowFilters, onCollectionClick, filtersText, allText, }: ShopCatalogPageProps): JSX.Element;
930
+
931
+ export declare interface ShopCatalogPageProps {
932
+ collections: ShopCatalogCollection[];
933
+ selectedCollection?: ShopCatalogCollection;
934
+ soldoutProductUIDs?: Set<string>;
935
+ renderProductCard: (product: ShopCatalogProduct, overrideSoldout: boolean) => ReactNode;
936
+ renderBanner?: () => ReactNode;
937
+ primaryColor?: string;
938
+ secondaryColor?: string;
939
+ itemsPerPage?: number;
940
+ defaultShowFilters?: boolean;
941
+ onCollectionClick?: (collection: ShopCatalogCollection) => void;
942
+ filtersText?: string;
943
+ allText?: string;
944
+ }
945
+
946
+ export declare interface ShopCatalogProduct {
947
+ UID: string;
948
+ inStock?: boolean;
949
+ daysSinceLastSale?: number;
950
+ props?: {
951
+ name: string;
952
+ value: string;
953
+ }[];
954
+ [key: string]: any;
955
+ }
956
+
921
957
  export declare function ShopPage({ currentCollectionUID, pleaseSelectACollectionToStartText, noShopAvailableText, noShopAvailableImageSrc, noShopOrInvitationFoundText, pleaseLogInText, returnToLocationAfterLogin, onCollectionSelected, onClickReturnToLogin }: Props_2): JSX.Element;
922
958
 
923
959
  export declare type ShopProduct = any & {
@@ -972,10 +1008,11 @@ export declare type SimplifiedUser = {
972
1008
  lastLogin?: string;
973
1009
  } | undefined;
974
1010
 
975
- export declare function SquareImage({ src, alt, size, mobileSize, rounded, circle, shadow, onClick, className, }: SquareImageProps): JSX.Element;
1011
+ export declare function SquareImage({ src, src2, alt, size, mobileSize, rounded, circle, shadow, onClick, className, thumbnail, imageStyle, }: SquareImageProps): JSX.Element;
976
1012
 
977
1013
  declare interface SquareImageProps {
978
1014
  src: string;
1015
+ src2?: string;
979
1016
  alt?: string;
980
1017
  size?: string;
981
1018
  mobileSize?: string;
@@ -984,6 +1021,8 @@ declare interface SquareImageProps {
984
1021
  shadow?: boolean;
985
1022
  onClick?: () => void;
986
1023
  className?: string;
1024
+ thumbnail?: string;
1025
+ imageStyle?: default_2.CSSProperties;
987
1026
  }
988
1027
 
989
1028
  export declare function SubscribeToPushNotification({ size, visible, forceVisible, text, knowMoreUrl, knowMoreText, onAction, onPopupClose }: Props_8): JSX.Element;