@lystech/core 3.0.127 → 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
|
@@ -885,7 +885,10 @@ declare type Props_2 = {
|
|
|
885
885
|
noShopOrInvitationFoundText?: string;
|
|
886
886
|
pleaseLogInText?: string;
|
|
887
887
|
returnToLocationAfterLogin?: boolean;
|
|
888
|
-
|
|
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;
|
|
889
892
|
onClickReturnToLogin?: () => void;
|
|
890
893
|
};
|
|
891
894
|
|
|
@@ -899,10 +902,14 @@ declare type Props_4 = {
|
|
|
899
902
|
};
|
|
900
903
|
|
|
901
904
|
declare type Props_5 = {
|
|
902
|
-
|
|
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;
|
|
903
909
|
currentCollectionUID?: string;
|
|
904
910
|
collectionsSelectorTitle?: string;
|
|
905
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. */
|
|
906
913
|
allowAutoSelect?: boolean;
|
|
907
914
|
};
|
|
908
915
|
|
|
@@ -43245,7 +43245,7 @@ const th = {
|
|
|
43245
43245
|
padding: 2,
|
|
43246
43246
|
lineHeight: 0,
|
|
43247
43247
|
flexShrink: 0
|
|
43248
|
-
}, CW = "@lystech/core", wW = "lystechcorenpmpackage:last-version", SW = "3.0.
|
|
43248
|
+
}, CW = "@lystech/core", wW = "lystechcorenpmpackage:last-version", SW = "3.0.128";
|
|
43249
43249
|
function xW(e = {}) {
|
|
43250
43250
|
const {
|
|
43251
43251
|
packageName: t = CW,
|
|
@@ -47512,9 +47512,9 @@ const PG = (e) => Mr(
|
|
|
47512
47512
|
function DG({ onCollectionSelected: e, currentCollectionUID: t, collectionsSelectorTitle: n, showOptions: r = !0, allowAutoSelect: a = !1 }) {
|
|
47513
47513
|
const { organization: i } = zr(), { currentUser: o } = Pr(), { data: s = [] } = Bg((o == null ? void 0 : o.email) || "", i), [c, u] = Ee(!1);
|
|
47514
47514
|
if (We(() => {
|
|
47515
|
-
if (s.length
|
|
47515
|
+
if (s.length === 1 && !t && !c && a) {
|
|
47516
47516
|
const d = s[0];
|
|
47517
|
-
u(!0), e == null || e(d.collectionUID);
|
|
47517
|
+
u(!0), e == null || e(d.collectionUID, { auto: !0 });
|
|
47518
47518
|
}
|
|
47519
47519
|
}, [s, a]), !r && t) {
|
|
47520
47520
|
const d = s.find((f) => f.collectionUID === t);
|
|
@@ -48039,7 +48039,7 @@ function Gq({
|
|
|
48039
48039
|
{
|
|
48040
48040
|
onCollectionSelected: s,
|
|
48041
48041
|
currentCollectionUID: U == null ? void 0 : U.UID,
|
|
48042
|
-
allowAutoSelect: !
|
|
48042
|
+
allowAutoSelect: !e
|
|
48043
48043
|
}
|
|
48044
48044
|
) : C ? /* @__PURE__ */ p.jsx(p.Fragment, {}) : /* @__PURE__ */ p.jsx(
|
|
48045
48045
|
bn,
|