@lystech/core 3.0.126 → 3.0.128

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,8 +234,9 @@ 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
 
241
242
  export declare function ClosingCountdown({ closing, onElapsed }: {
@@ -692,7 +693,7 @@ export declare type PackageUpdateEvent = {
692
693
  hasUpdated: boolean;
693
694
  };
694
695
 
695
- export declare function PastOrdersPage({ billUID, onCollectionInvitationClick, }: Props_3): JSX.Element;
696
+ export declare function PastOrdersPage({ billUID, onCollectionInvitationClick }: Props_3): JSX.Element;
696
697
 
697
698
  export declare function PaypalCheckout({ products, promoCodes, onOrderCreated, onOrderComplete, onShipppingOptionsChange: onShippingOptionsChangeEvent, onInstrumentDeclined, onError, }: Props_6): JSX.Element;
698
699
 
@@ -884,7 +885,10 @@ declare type Props_2 = {
884
885
  noShopOrInvitationFoundText?: string;
885
886
  pleaseLogInText?: string;
886
887
  returnToLocationAfterLogin?: boolean;
887
- onCollectionSelected: (collectionUID: string) => void;
888
+ /** `info.auto` : la page l'a choisie seule (une seule commande ouverte) — remplacer l'adresse plutôt que l'empiler. */
889
+ onCollectionSelected: (collectionUID: string, info?: {
890
+ auto: boolean;
891
+ }) => void;
888
892
  onClickReturnToLogin?: () => void;
889
893
  };
890
894
 
@@ -898,10 +902,14 @@ declare type Props_4 = {
898
902
  };
899
903
 
900
904
  declare type Props_5 = {
901
- onCollectionSelected?: (collectionUID: string) => void;
905
+ /** `auto` : choisie par la page (une seule commande ouverte), pas par un clic — à remplacer dans l'historique du navigateur, pas à empiler. */
906
+ onCollectionSelected?: (collectionUID: string, info?: {
907
+ auto: boolean;
908
+ }) => void;
902
909
  currentCollectionUID?: string;
903
910
  collectionsSelectorTitle?: string;
904
911
  showOptions?: boolean;
912
+ /** Vrai : s'il n'y a qu'UNE commande ouverte et qu'aucune n'est choisie, elle s'ouvre d'elle-même. Plusieurs : le client choisit. */
905
913
  allowAutoSelect?: boolean;
906
914
  };
907
915