@lystech/core 3.0.125 → 3.0.127

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
@@ -234,10 +234,16 @@ export declare type CartProduct = ShopProduct & {
234
234
  quantity: number;
235
235
  };
236
236
 
237
- export declare function ClientOrderBill({ bill }: {
237
+ export declare function ClientOrderBill({ bill, hideInvoiceLink }: {
238
238
  bill: CustomerBill;
239
+ hideInvoiceLink?: boolean;
239
240
  }): JSX.Element;
240
241
 
242
+ export declare function ClosingCountdown({ closing, onElapsed }: {
243
+ closing: ShopClosing;
244
+ onElapsed?: () => void;
245
+ }): JSX.Element | null;
246
+
241
247
  export declare function CollectionInvitationSelector({ onCollectionSelected, currentCollectionUID, collectionsSelectorTitle, showOptions, allowAutoSelect }: Props_5): JSX.Element | null;
242
248
 
243
249
  export declare type CollectionInvitationType = {
@@ -450,6 +456,9 @@ declare interface DataGridRow {
450
456
 
451
457
  export declare function fetchAvailableCollections(): Promise<any>;
452
458
 
459
+ /** « 2 j 03 h 15 min 09 s » ; les unités nulles de tête disparaissent. */
460
+ export declare function formatCountdown(ms: number): string;
461
+
453
462
  export declare function formatDateToReadable(date: string | Date | number, showHours?: boolean): string;
454
463
 
455
464
  export declare function formatTime(date: string | Date | number): string;
@@ -684,7 +693,7 @@ export declare type PackageUpdateEvent = {
684
693
  hasUpdated: boolean;
685
694
  };
686
695
 
687
- export declare function PastOrdersPage({ billUID, onCollectionInvitationClick, }: Props_3): JSX.Element;
696
+ export declare function PastOrdersPage({ billUID, onCollectionInvitationClick }: Props_3): JSX.Element;
688
697
 
689
698
  export declare function PaypalCheckout({ products, promoCodes, onOrderCreated, onOrderComplete, onShipppingOptionsChange: onShippingOptionsChangeEvent, onInstrumentDeclined, onError, }: Props_6): JSX.Element;
690
699
 
@@ -1040,6 +1049,11 @@ export declare interface ShopCatalogProduct {
1040
1049
  [key: string]: any;
1041
1050
  }
1042
1051
 
1052
+ declare interface ShopClosing {
1053
+ closeAt: string;
1054
+ message: string;
1055
+ }
1056
+
1043
1057
  export declare function ShopPage({ currentCollectionUID, pleaseSelectACollectionToStartText, noShopAvailableText, noShopAvailableImageSrc, noShopOrInvitationFoundText, pleaseLogInText, returnToLocationAfterLogin, onCollectionSelected, onClickReturnToLogin }: Props_2): JSX.Element;
1044
1058
 
1045
1059
  export declare type ShopProduct = any & {