ublo-lib 1.38.22 → 1.38.24
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/es/common/components/collapsible/collapsible.d.ts +3 -2
- package/es/common/components/collapsible/collapsible.d.ts.map +1 -1
- package/es/common/components/collapsible/collapsible.js +2 -2
- package/es/common/components/cross-selling-editor/services/utils.d.ts.map +1 -1
- package/es/common/components/cross-selling-editor/services/utils.js +0 -10
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
type Props = {
|
|
3
|
-
children: React.ReactNode;
|
|
4
3
|
height: number;
|
|
5
4
|
lang: string;
|
|
6
5
|
gradientColor: string;
|
|
6
|
+
path: string;
|
|
7
|
+
children: React.ReactNode;
|
|
7
8
|
};
|
|
8
|
-
export default function Collapsible({ gradientColor, height,
|
|
9
|
+
export default function Collapsible({ gradientColor, height, lang, path, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
10
11
|
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../src/common/components/collapsible/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,KAAK,GAAG;IACX,
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../src/common/components/collapsible/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAaF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,aAAsB,EACtB,MAAY,EACZ,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,EAAE,KAAK,2CAkDP"}
|
|
@@ -16,7 +16,7 @@ const messages = {
|
|
|
16
16
|
close: "Close",
|
|
17
17
|
},
|
|
18
18
|
};
|
|
19
|
-
export default function Collapsible({ gradientColor = "#fff", height = 150,
|
|
19
|
+
export default function Collapsible({ gradientColor = "#fff", height = 150, lang, path, children, }) {
|
|
20
20
|
const [opened, setOpened] = React.useState(false);
|
|
21
21
|
const [hasOverflow, setHasOverflow] = React.useState(false);
|
|
22
22
|
const classes = classnames(styles.collapsible, {
|
|
@@ -40,7 +40,7 @@ export default function Collapsible({ gradientColor = "#fff", height = 150, chil
|
|
|
40
40
|
if (!isConnected && childrenHeight > parentHeight) {
|
|
41
41
|
setHasOverflow(true);
|
|
42
42
|
}
|
|
43
|
-
}, []);
|
|
43
|
+
}, [lang, path]);
|
|
44
44
|
return (_jsxs(motion.div, { ref: parentRef, animate: {
|
|
45
45
|
height: opened || !hasOverflow ? "auto" : height,
|
|
46
46
|
}, initial: { height }, className: classes, style: { "--gradient-color": gradientColor }, children: [_jsx("div", { ref: childrenRef, children: children }), hasOverflow && (_jsxs(Button, { className: styles.message, onClick: toggleOpen, children: [message, _jsx(Icon, {})] }))] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/cross-selling-editor/services/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAa,MAAM,UAAU,CAAC;AAE9E,KAAK,IAAI,GAAG;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC,M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AAC,IAAI,EAAE,IAAI;;;;;;;;EAMzC;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,IAAI,YAKpD;AAcD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,YAQjD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,YAMjD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,gBAAgB,EAAE,CAUnE;AAED,eAAO,MAAM,SAAS,yBAAyB,CAAC;AAEhD,wBAAgB,SAAS,CAAC,SAAS,EAAE,WAAW,OAc/C;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,UAOlE"}
|
|
@@ -44,7 +44,6 @@ export function getActiveOverride(key, cartContent, config, forcedEsfOverride) {
|
|
|
44
44
|
const { items } = cartContent;
|
|
45
45
|
const amountInCart = items[key];
|
|
46
46
|
const item = config[key];
|
|
47
|
-
console.log(items, key);
|
|
48
47
|
if (!amountInCart)
|
|
49
48
|
return item?.default;
|
|
50
49
|
const matchingOverrides = getMatchingOverrides(item, cartContent, forcedEsfOverride);
|
|
@@ -71,15 +70,6 @@ function getMatchingOverrides(item, cartContent, forcedEsfOverride) {
|
|
|
71
70
|
isDurationTagMatching &&
|
|
72
71
|
isEllohaGroupMatching &&
|
|
73
72
|
isEsfProductMatching;
|
|
74
|
-
console.log({
|
|
75
|
-
isMatching,
|
|
76
|
-
isStayMatching,
|
|
77
|
-
isMerchantMatching,
|
|
78
|
-
isSkiPassDurationMatching,
|
|
79
|
-
isDurationTagMatching,
|
|
80
|
-
isEllohaGroupMatching,
|
|
81
|
-
isEsfProductMatching,
|
|
82
|
-
});
|
|
83
73
|
return isMatching ? [...acc, override.id] : acc;
|
|
84
74
|
}, []);
|
|
85
75
|
return matchs;
|