@lystech/core 3.0.48 → 3.0.50
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 +1 -1
- package/bin/README.md +126 -126
- package/bin/attach.cjs +276 -276
- package/bin/check-pwa.cjs +276 -276
- package/bin/postinstall.cjs +216 -216
- package/bin/setup-github-action.cjs +208 -208
- package/bin/setup-registry.cjs +188 -188
- package/bin/update-lystech-package.yml +114 -114
- package/dist/index.d.ts +39 -1
- package/dist/lystech-core-provider.es.js +7661 -7288
- package/dist/lystech-core-provider.umd.js +133 -133
- package/dist/lystech-core-styles.css +1 -1
- package/package.json +77 -77
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, thumbnail, }: 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;
|
|
@@ -985,6 +1022,7 @@ declare interface SquareImageProps {
|
|
|
985
1022
|
onClick?: () => void;
|
|
986
1023
|
className?: string;
|
|
987
1024
|
thumbnail?: string;
|
|
1025
|
+
imageStyle?: default_2.CSSProperties;
|
|
988
1026
|
}
|
|
989
1027
|
|
|
990
1028
|
export declare function SubscribeToPushNotification({ size, visible, forceVisible, text, knowMoreUrl, knowMoreText, onAction, onPopupClose }: Props_8): JSX.Element;
|