ublo-lib 1.41.1 → 1.42.1
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/breadcrumb.js +14 -2
- package/es/common/components/cookie-consent/cookie-consent.d.ts +2 -1
- package/es/common/components/cookie-consent/cookie-consent.d.ts.map +1 -1
- package/es/common/components/editable-calendar/index.d.ts +2 -1
- package/es/common/components/editable-calendar/index.d.ts.map +1 -1
- package/es/common/components/gesco-contact-form/services/form.d.ts.map +1 -1
- package/es/common/components/image-with-loader/image-with-loader.d.ts +1 -0
- package/es/common/components/image-with-loader/image-with-loader.d.ts.map +1 -1
- package/es/common/utils/file-manager.d.ts +1 -7
- package/es/common/utils/file-manager.d.ts.map +1 -1
- package/es/common/utils/url-parameters.d.ts.map +1 -1
- package/es/esf/components/instant-search/hooks/use-search.d.ts +0 -1
- package/es/esf/components/instant-search/hooks/use-search.d.ts.map +1 -1
- package/es/esf/components/instant-search/links.js +1 -1
- package/es/esf/components/instant-search/products.js +1 -1
- package/es/esf/components/period-picker/popup.d.ts +2 -1
- package/es/esf/components/period-picker/popup.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/components/facet-selector.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/components/form.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/components/resort-selector.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/components/stay-picker.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/services/offers.d.ts.map +1 -1
- package/es/future/components/msem-preset-editor/services/url-params.d.ts.map +1 -1
- package/es/future/components/msem-preset-linker/msem-preset-linker.d.ts.map +1 -1
- package/es/future/components/msem-preset-linker/msem-preset-linker.js +9 -4
- package/es/future/components/msem-preset-linker/msem-preset-linker.module.css +4 -0
- package/es/future/hooks/use-msem-presets.d.ts.map +1 -1
- package/es/future/hooks/use-msem-presets.js +3 -1
- package/es/future/utils/fetcher.d.ts.map +1 -1
- package/es/future/utils/url-parameters.d.ts.map +1 -1
- package/es/lbm/components/instant-search/faqs.js +1 -1
- package/es/lbm/components/instant-search/google-results.js +1 -1
- package/es/lbm/components/instant-search/hooks/use-google-search.d.ts +0 -1
- package/es/lbm/components/instant-search/hooks/use-google-search.d.ts.map +1 -1
- package/es/lbm/components/instant-search/hooks/use-search.d.ts +0 -1
- package/es/lbm/components/instant-search/hooks/use-search.d.ts.map +1 -1
- package/es/lbm/components/instant-search/links.js +1 -1
- package/es/lbm/components/instant-search/products.js +1 -1
- package/es/lbm/components/instant-search/widgets/components/card.js +1 -1
- package/es/market-place/components/instant-search/google-results.js +1 -1
- package/es/market-place/components/instant-search/hooks/use-google-search.d.ts +0 -1
- package/es/market-place/components/instant-search/hooks/use-google-search.d.ts.map +1 -1
- package/es/market-place/components/instant-search/hooks/use-search.d.ts +0 -1
- package/es/market-place/components/instant-search/hooks/use-search.d.ts.map +1 -1
- package/es/market-place/components/instant-search/links.js +1 -1
- package/es/market-place/components/instant-search/products.js +1 -1
- package/package.json +27 -35
- package/es/common/components/editable-map/cluster.d.ts +0 -5
- package/es/common/components/editable-map/cluster.d.ts.map +0 -1
- package/es/common/components/editable-map/cluster.js +0 -8
- package/es/common/components/editable-map/color-picker.d.ts +0 -6
- package/es/common/components/editable-map/color-picker.d.ts.map +0 -1
- package/es/common/components/editable-map/color-picker.js +0 -27
- package/es/common/components/editable-map/color-picker.module.css +0 -66
- package/es/common/components/editable-map/edit-form.d.ts +0 -7
- package/es/common/components/editable-map/edit-form.d.ts.map +0 -1
- package/es/common/components/editable-map/edit-form.js +0 -35
- package/es/common/components/editable-map/edit-form.module.css +0 -64
- package/es/common/components/editable-map/editable-map.d.ts +0 -6
- package/es/common/components/editable-map/editable-map.d.ts.map +0 -1
- package/es/common/components/editable-map/editable-map.js +0 -184
- package/es/common/components/editable-map/editable-map.module.css +0 -251
- package/es/common/components/editable-map/full-screen-button.d.ts +0 -7
- package/es/common/components/editable-map/full-screen-button.d.ts.map +0 -1
- package/es/common/components/editable-map/full-screen-button.js +0 -75
- package/es/common/components/editable-map/full-screen-button.module.css +0 -15
- package/es/common/components/editable-map/geoman.d.ts +0 -8
- package/es/common/components/editable-map/geoman.d.ts.map +0 -1
- package/es/common/components/editable-map/geoman.js +0 -181
- package/es/common/components/editable-map/icon-picker.d.ts +0 -6
- package/es/common/components/editable-map/icon-picker.d.ts.map +0 -1
- package/es/common/components/editable-map/icon-picker.js +0 -31
- package/es/common/components/editable-map/icon-picker.module.css +0 -64
- package/es/common/components/editable-map/icons/esf-pralognan.d.ts +0 -51
- package/es/common/components/editable-map/icons/esf-pralognan.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/esf-pralognan.js +0 -155
- package/es/common/components/editable-map/icons/esf.d.ts +0 -39
- package/es/common/components/editable-map/icons/esf.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/esf.js +0 -119
- package/es/common/components/editable-map/icons/index.d.ts +0 -7
- package/es/common/components/editable-map/icons/index.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/index.js +0 -6
- package/es/common/components/editable-map/icons/lavovelo.d.ts +0 -5
- package/es/common/components/editable-map/icons/lavovelo.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/lavovelo.js +0 -17
- package/es/common/components/editable-map/icons/sata-huez.d.ts +0 -29
- package/es/common/components/editable-map/icons/sata-huez.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/sata-huez.js +0 -89
- package/es/common/components/editable-map/icons/sedev-vars.d.ts +0 -29
- package/es/common/components/editable-map/icons/sedev-vars.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/sedev-vars.js +0 -89
- package/es/common/components/editable-map/icons/ui.d.ts +0 -2
- package/es/common/components/editable-map/icons/ui.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/ui.js +0 -7
- package/es/common/components/editable-map/icons/viarmonia.d.ts +0 -3
- package/es/common/components/editable-map/icons/viarmonia.d.ts.map +0 -1
- package/es/common/components/editable-map/icons/viarmonia.js +0 -11
- package/es/common/components/editable-map/index.d.ts +0 -5
- package/es/common/components/editable-map/index.d.ts.map +0 -1
- package/es/common/components/editable-map/index.js +0 -67
- package/es/common/components/editable-map/initial-marker-form.d.ts +0 -4
- package/es/common/components/editable-map/initial-marker-form.d.ts.map +0 -1
- package/es/common/components/editable-map/initial-marker-form.js +0 -17
- package/es/common/components/editable-map/initial-marker-form.module.css +0 -25
- package/es/common/components/editable-map/map-events.d.ts +0 -5
- package/es/common/components/editable-map/map-events.d.ts.map +0 -1
- package/es/common/components/editable-map/map-events.js +0 -12
- package/es/common/components/editable-map/marker-list.d.ts +0 -13
- package/es/common/components/editable-map/marker-list.d.ts.map +0 -1
- package/es/common/components/editable-map/marker-list.js +0 -86
- package/es/common/components/editable-map/marker-list.module.css +0 -122
- package/es/common/components/editable-map/markers.d.ts +0 -7
- package/es/common/components/editable-map/markers.d.ts.map +0 -1
- package/es/common/components/editable-map/markers.js +0 -27
- package/es/common/components/editable-map/markers.module.css +0 -26
- package/es/common/components/editable-map/popup-data.d.ts +0 -4
- package/es/common/components/editable-map/popup-data.d.ts.map +0 -1
- package/es/common/components/editable-map/popup-data.js +0 -12
- package/es/common/components/editable-map/popup-data.module.css +0 -41
- package/es/common/components/editable-map/slopes-toggle.d.ts +0 -5
- package/es/common/components/editable-map/slopes-toggle.d.ts.map +0 -1
- package/es/common/components/editable-map/slopes-toggle.js +0 -13
- package/es/common/components/editable-map/slopes-toggle.module.css +0 -15
- package/es/common/components/editable-map/utils/file-manager.d.ts +0 -2
- package/es/common/components/editable-map/utils/file-manager.d.ts.map +0 -1
- package/es/common/components/editable-map/utils/file-manager.js +0 -29
|
@@ -19,9 +19,21 @@ function Item({ name, page, path, itemTitle, nextItem, isCurrent, exclusions, })
|
|
|
19
19
|
const noHref = isCurrent || !hasTemplate;
|
|
20
20
|
const isExcluded = !isCurrent && exclusions.includes(name);
|
|
21
21
|
const Tag = isExternalUrl ? "a" : noHref ? "span" : Link;
|
|
22
|
-
const linkProps = { title: itemTitle, page,
|
|
22
|
+
const linkProps = { title: itemTitle, page, href: path };
|
|
23
23
|
const spanProps = { dangerouslySetInnerHTML: { __html: itemTitle } };
|
|
24
24
|
const anchorProps = { ...spanProps, href: path };
|
|
25
25
|
const props = isExternalUrl ? anchorProps : noHref ? spanProps : linkProps;
|
|
26
|
-
return (_jsxs(_Fragment, { children: [!isExcluded &&
|
|
26
|
+
return (_jsxs(_Fragment, { children: [!isExcluded &&
|
|
27
|
+
renderItem(isExternalUrl, noHref, anchorProps, spanProps, linkProps), nextItem] }));
|
|
28
|
+
}
|
|
29
|
+
function renderItem(isExternalUrl, noHref, anchorProps, spanProps, linkProps) {
|
|
30
|
+
if (isExternalUrl) {
|
|
31
|
+
return _jsx("a", { className: "breadcrumb__item", ...anchorProps });
|
|
32
|
+
}
|
|
33
|
+
else if (noHref) {
|
|
34
|
+
return _jsx("span", { className: "breadcrumb__item", ...spanProps });
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return _jsx(Link, { className: "breadcrumb__item", ...linkProps });
|
|
38
|
+
}
|
|
27
39
|
}
|
|
@@ -4,5 +4,6 @@ declare function CookieConsent({ lang, consent, updateConsent }: {
|
|
|
4
4
|
lang: any;
|
|
5
5
|
consent: any;
|
|
6
6
|
updateConsent: any;
|
|
7
|
-
}):
|
|
7
|
+
}): React.ReactPortal;
|
|
8
|
+
import * as React from "react";
|
|
8
9
|
//# sourceMappingURL=cookie-consent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cookie-consent.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cookie-consent/cookie-consent.js"],"names":[],"mappings":"AAsGO,0CA6BN;;AArHD;;;;
|
|
1
|
+
{"version":3,"file":"cookie-consent.d.ts","sourceRoot":"","sources":["../../../../src/common/components/cookie-consent/cookie-consent.js"],"names":[],"mappings":"AAsGO,0CA6BN;;AArHD;;;;sBAsFC;uBApGsB,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-calendar/index.js"],"names":[],"mappings":"AAOA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-calendar/index.js"],"names":[],"mappings":"AAOA,gEAiDC;uBAxDsB,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/gesco-contact-form/services/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,0BAA0B,cAuBjE;AAED,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/gesco-contact-form/services/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,UAAU,CAAC;AAExD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,0BAA0B,cAuBjE;AAED,KAAK,MAAM,GAAG;IACZ,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU;;;;;;;;;;;;;;UAPvD,IAAI,GAAG,IAAI;aACR,MAAM;aACN,MAAM;eACJ,MAAM;WACV,QAAQ,GAAG,QAAQ;EAM3B"}
|
|
@@ -12,6 +12,7 @@ declare const _default: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLP
|
|
|
12
12
|
placeholder?: import("next/dist/shared/lib/get-img-props").PlaceholderValue;
|
|
13
13
|
blurDataURL?: string;
|
|
14
14
|
unoptimized?: boolean;
|
|
15
|
+
overrideSrc?: string;
|
|
15
16
|
onLoadingComplete?: import("next/dist/shared/lib/get-img-props").OnLoadingComplete;
|
|
16
17
|
layout?: string;
|
|
17
18
|
objectFit?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-with-loader.d.ts","sourceRoot":"","sources":["../../../../src/common/components/image-with-loader/image-with-loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"image-with-loader.d.ts","sourceRoot":"","sources":["../../../../src/common/components/image-with-loader/image-with-loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;AAK/B,wBAAiD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-manager.d.ts","sourceRoot":"","sources":["../../../src/common/utils/file-manager.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,EAAE
|
|
1
|
+
{"version":3,"file":"file-manager.d.ts","sourceRoot":"","sources":["../../../src/common/utils/file-manager.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,SAAS,EAAE,GAAG,CAAC;QACf,eAAe,EAAE,GAAG,CAAC;KACtB;CACF;AAED,eAAO,MAAM,eAAe,gBAAsB,OAAO,kBASxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url-parameters.d.ts","sourceRoot":"","sources":["../../../src/common/utils/url-parameters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,kBAAmB,MAAM,EAAE,WAO5D,CAAC;AAEF,eAAO,MAAM,KAAK,WAAY,
|
|
1
|
+
{"version":3,"file":"url-parameters.d.ts","sourceRoot":"","sources":["../../../src/common/utils/url-parameters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,kBAAmB,MAAM,EAAE,WAO5D,CAAC;AAEF,eAAO,MAAM,KAAK,WAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,WAWhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;EAY1E"}
|
|
@@ -25,6 +25,6 @@ export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loadi
|
|
|
25
25
|
const linkTitle = Utils.getHighlight(titleProperty, link.highlight) ||
|
|
26
26
|
link.document[titleProperty];
|
|
27
27
|
const linkText = Utils.getHighlight("text", link.highlight, true) || text;
|
|
28
|
-
return (_jsxs(Link, { href: decodedPath, className: css.link, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
|
|
28
|
+
return (_jsxs(Link, { href: decodedPath, className: css.link, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
|
|
29
29
|
})] })] }));
|
|
30
30
|
}
|
|
@@ -37,6 +37,6 @@ export default function Products({ lang, products, weekNumber, loading, sendPlau
|
|
|
37
37
|
const productText = Utils.getHighlight("text", product.highlight) || text;
|
|
38
38
|
const showPrice = price !== undefined && weekNumber !== null;
|
|
39
39
|
const imagePlaceholderStategy = imagePlaceholder ? "blur" : "empty";
|
|
40
|
-
return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, blurDataURL: imagePlaceholder }), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productPageTitle, dangerouslySetInnerHTML: { __html: productPageTitle } }), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
|
|
40
|
+
return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, blurDataURL: imagePlaceholder }), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productPageTitle, dangerouslySetInnerHTML: { __html: productPageTitle } }), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
|
|
41
41
|
}), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(Icons.ArrowDown, {})] }) }))] }));
|
|
42
42
|
}
|
|
@@ -4,5 +4,6 @@ export default function Popup({ mustFilterSections, showDialog, opened, onChange
|
|
|
4
4
|
opened: any;
|
|
5
5
|
onChange: any;
|
|
6
6
|
selectAndClose: any;
|
|
7
|
-
}):
|
|
7
|
+
}): React.ReactPortal;
|
|
8
|
+
import * as React from "react";
|
|
8
9
|
//# sourceMappingURL=popup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popup.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/popup.js"],"names":[],"mappings":"AAOA;;;;;;
|
|
1
|
+
{"version":3,"file":"popup.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/period-picker/popup.js"],"names":[],"mappings":"AAOA;;;;;;sBAuCC;uBA9CsB,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facet-selector.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/facet-selector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"facet-selector.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/facet-selector.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE;;;;CAAA,2CA2BnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/form.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,MAAM,EACN,cAAc,EACd,QAAQ,GACT;;;;;;CAAA,2CA0CA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resort-selector.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/resort-selector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resort-selector.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/resort-selector.tsx"],"names":[],"mappings":"AAEA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EACP,MAAM,EACN,SAAS,EACT,YAAY,GACb,EAAE,KAAK,2CAiBP"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stay-picker.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/stay-picker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stay-picker.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/components/stay-picker.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACnC,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACtD,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;CAClD,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,KAAK,2CAmD1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/services/offers.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAsB,GAAG,CACvB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,IAAI,GAAG,IAAI,EACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,KAAK,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"offers.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/services/offers.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,wBAAsB,GAAG,CACvB,eAAe,EAAE,MAAM,EACvB,IAAI,EAAE,IAAI,GAAG,IAAI,EACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,KAAK,EAAE,MAAM;;UA3BP,MAAM;cACF,MAAM;WACT,MAAM;UACP,MAAM;UACN,MAAM;aACH,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACpB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;aAClB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;YACpB,MAAM;MAwEf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url-params.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/services/url-params.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,yBAWjB,CAAC;AAEF,eAAO,MAAM,YAAY,SACjB,MAAM,UACJ,
|
|
1
|
+
{"version":3,"file":"url-params.d.ts","sourceRoot":"","sources":["../../../../../src/future/components/msem-preset-editor/services/url-params.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,yBAWjB,CAAC;AAEF,eAAO,MAAM,YAAY,SACjB,MAAM,UACJ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,WAClB,MAAM,WAahB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"msem-preset-linker.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem-preset-linker/msem-preset-linker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"msem-preset-linker.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem-preset-linker/msem-preset-linker.tsx"],"names":[],"mappings":"AAQA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,MAAM,EACN,eAAe,EACf,MAAM,EACN,OAAO,EACP,KAAK,EACL,OAAO,GACR,EAAE,KAAK,2CAgFP"}
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import Dialog from "dt-design-system/es/dialog";
|
|
4
4
|
import Button from "dt-design-system/es/button";
|
|
5
|
+
import Checkbox from "dt-design-system/es/checkbox";
|
|
5
6
|
import MseMPresetEditor from "../msem-preset-editor";
|
|
6
7
|
import css from "./msem-preset-linker.module.css";
|
|
7
8
|
import MseMLogo from "./msem-logo";
|
|
@@ -10,7 +11,10 @@ export default function MseMPresetLinker({ lang, channel, resort, msemServicesUr
|
|
|
10
11
|
const link = target?.querySelector(":scope > a");
|
|
11
12
|
const currentPreset = target?.getAttribute("data-msem-preset") || undefined;
|
|
12
13
|
const urlOverride = link?.getAttribute("href") || undefined;
|
|
13
|
-
const
|
|
14
|
+
const defaultPreset = currentPreset ? JSON.parse(currentPreset) : null;
|
|
15
|
+
const [preset, setPreset] = React.useState(defaultPreset);
|
|
16
|
+
const [groundedTo, setGroundedTo] = React.useState(Boolean(defaultPreset?.groundedTo));
|
|
17
|
+
const allowGroundedTo = Boolean(target?.querySelector("[data-msem-placeholder]"));
|
|
14
18
|
const closeEditor = React.useCallback(() => {
|
|
15
19
|
close();
|
|
16
20
|
}, [close]);
|
|
@@ -22,12 +26,13 @@ export default function MseMPresetLinker({ lang, channel, resort, msemServicesUr
|
|
|
22
26
|
if (!anchorHasHref && preset?.url) {
|
|
23
27
|
delete preset.url;
|
|
24
28
|
}
|
|
25
|
-
|
|
29
|
+
const fullPreset = { ...preset, groundedTo };
|
|
30
|
+
target?.setAttribute(PRESET_ATTRIBUTE, JSON.stringify(fullPreset));
|
|
26
31
|
}
|
|
27
32
|
else {
|
|
28
33
|
target?.removeAttribute(PRESET_ATTRIBUTE);
|
|
29
34
|
}
|
|
30
35
|
closeEditor();
|
|
31
|
-
}, [closeEditor, preset, target]);
|
|
32
|
-
return (_jsxs(Dialog, { className: css.dialog, isOpened: true, close: closeEditor, closeButtonVariant: "transparent", closeOnBackdropClick: false, showAsModal: false, children: [_jsxs("div", { className: css.title, children: [_jsx(MseMLogo, { className: css.logo }), " \u00C9diteur de presets"] }), _jsx("div", { className: css.content, children: _jsx(MseMPresetEditor, { lang: lang, channel: channel, resort: resort, msemServicesUrl: msemServicesUrl, urlOverride: urlOverride, resorts: resorts, currentPreset: preset, onChange: setPreset, showUrl: showUrl }) }), _jsxs("div", { className: css.buttons, children: [_jsx(Button, { variant: "secondary", onClick: closeEditor, children: "Annuler" }), _jsx(Button, { variant: "primary", onClick: updatePreset, children: "Valider" })] })] }));
|
|
36
|
+
}, [closeEditor, groundedTo, preset, target]);
|
|
37
|
+
return (_jsxs(Dialog, { className: css.dialog, isOpened: true, close: closeEditor, closeButtonVariant: "transparent", closeOnBackdropClick: false, showAsModal: false, children: [_jsxs("div", { className: css.title, children: [_jsx(MseMLogo, { className: css.logo }), " \u00C9diteur de presets"] }), _jsx("div", { className: css.content, children: _jsx(MseMPresetEditor, { lang: lang, channel: channel, resort: resort, msemServicesUrl: msemServicesUrl, urlOverride: urlOverride, resorts: resorts, currentPreset: preset, onChange: setPreset, showUrl: showUrl }) }), _jsxs("div", { className: css.buttons, children: [allowGroundedTo && (_jsx(Checkbox, { className: css.groundedTo, label: "Ins\u00E9rer le widget dans la page", checked: groundedTo, onCheckedChange: setGroundedTo })), _jsx(Button, { variant: "secondary", onClick: closeEditor, children: "Annuler" }), _jsx(Button, { variant: "primary", onClick: updatePreset, children: "Valider" })] })] }));
|
|
33
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-msem-presets.d.ts","sourceRoot":"","sources":["../../../src/future/hooks/use-msem-presets.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,cAAc,EAAE;;CAAA,
|
|
1
|
+
{"version":3,"file":"use-msem-presets.d.ts","sourceRoot":"","sources":["../../../src/future/hooks/use-msem-presets.ts"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,cAAc,EAAE;;CAAA,QAiDxD"}
|
|
@@ -12,7 +12,9 @@ export default function useMseMPresets({ defaultOptions }) {
|
|
|
12
12
|
const preset = section?.getAttribute(PRESET_ATTRIBUTE);
|
|
13
13
|
if (!preset)
|
|
14
14
|
return;
|
|
15
|
-
const { widget, options = {}, presets, url } = JSON.parse(preset);
|
|
15
|
+
const { widget, options = {}, presets, url, groundedTo, } = JSON.parse(preset);
|
|
16
|
+
if (groundedTo)
|
|
17
|
+
return;
|
|
16
18
|
const allOptions = { ...defaultOptions, ...options, lang };
|
|
17
19
|
e.preventDefault();
|
|
18
20
|
e.stopPropagation();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/future/utils/fetcher.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cAG9B;AACD,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/future/utils/fetcher.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,GAAG,GAAG,EACzB,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC5B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cAG9B;AACD,eAAO,MAAM,GAAG,GASA,CAAC,cACP,MAAM,SACL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,2CAXG,CAAC;AAClC,eAAO,MAAM,IAAI,GAQD,CAAC,cACP,MAAM,SACL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,2CAVK,CAAC;AACpC,eAAO,MAAM,OAAO,GAOJ,CAAC,cACP,MAAM,SACL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,2CATU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url-parameters.d.ts","sourceRoot":"","sources":["../../../src/future/utils/url-parameters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,kBAAmB,MAAM,EAAE,WAO5D,CAAC;AAEF,eAAO,MAAM,KAAK,WAAY,
|
|
1
|
+
{"version":3,"file":"url-parameters.d.ts","sourceRoot":"","sources":["../../../src/future/utils/url-parameters.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,kBAAmB,MAAM,EAAE,WAO5D,CAAC;AAEF,eAAO,MAAM,KAAK,WAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,WAWhD,CAAC"}
|
|
@@ -43,5 +43,5 @@ function Faq({ faq, sendPlausibleGoal }) {
|
|
|
43
43
|
const createRipple = (e) => {
|
|
44
44
|
Ripple.create(e);
|
|
45
45
|
};
|
|
46
|
-
return (_jsxs(Link, { className: styles.faq, href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx("div", { className: styles.faqTitle, dangerouslySetInnerHTML: { __html: faqTitle } }), _jsx("div", { className: styles.faqText, dangerouslySetInnerHTML: { __html: faqText } })] }));
|
|
46
|
+
return (_jsxs(Link, { className: styles.faq, href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx("div", { className: styles.faqTitle, dangerouslySetInnerHTML: { __html: faqTitle } }), _jsx("div", { className: styles.faqText, dangerouslySetInnerHTML: { __html: faqText } })] }));
|
|
47
47
|
}
|
|
@@ -21,6 +21,6 @@ export default function OTLinks({ products, loading, sendPlausibleGoal, faqsMaxi
|
|
|
21
21
|
const productTitle = htmlTitle
|
|
22
22
|
.replaceAll("b>", "mark>")
|
|
23
23
|
.toLowerCase();
|
|
24
|
-
return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(Icons.Globe, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(Icons.ExternalLink, { className: css.linkIcon })] }) })] }, i));
|
|
24
|
+
return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: () => sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(Icons.Globe, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(Icons.ExternalLink, { className: css.linkIcon })] }) })] }, i));
|
|
25
25
|
})] })] }));
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-google-search.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/hooks/use-google-search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-google-search.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/hooks/use-google-search.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,IAAI,EAAE,MAAM;;;;;;EAInD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/lbm/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;;;EAa1E"}
|
|
@@ -28,6 +28,6 @@ export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loadi
|
|
|
28
28
|
const linkTitle = Utils.getHighlight(titleProperty, link.highlight) ||
|
|
29
29
|
link.document[titleProperty].trim();
|
|
30
30
|
const linkText = Utils.getHighlight("text", link.highlight, true) || text?.trim();
|
|
31
|
-
return (_jsxs(Link, { href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", className: css.link, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), site !== docSite && (_jsx(Icons.ExternalLink, { className: css.linkIcon }))] }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
|
|
31
|
+
return (_jsxs(Link, { href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", className: css.link, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), site !== docSite && (_jsx(Icons.ExternalLink, { className: css.linkIcon }))] }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
|
|
32
32
|
})] })] }));
|
|
33
33
|
}
|
|
@@ -45,6 +45,6 @@ export default function Products({ lang, products, loading, sendPlausibleGoal, o
|
|
|
45
45
|
const productText = Utils.getHighlight("text", product.highlight) || text;
|
|
46
46
|
const showPrice = Boolean(price?.trim().length > 0);
|
|
47
47
|
const imagePlaceholderStrategy = imagePlaceholder ? "blur" : "empty";
|
|
48
|
-
return (_jsxs(Link, { className: css.product, href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStrategy, blurDataURL: imagePlaceholder }), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productPageTitle, dangerouslySetInnerHTML: { __html: productPageTitle } }), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
|
|
48
|
+
return (_jsxs(Link, { className: css.product, href: docSite === site ? decodedPath : portalUrl + decodedPath, target: docSite === site ? undefined : "_blank", onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStrategy, blurDataURL: imagePlaceholder }), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productPageTitle, dangerouslySetInnerHTML: { __html: productPageTitle } }), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
|
|
49
49
|
}), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(Icons.ArrowDown, {})] }) }))] }));
|
|
50
50
|
}
|
|
@@ -11,5 +11,5 @@ export default function Card({ doc, overlayTitle, sendPlausibleGoal, children, }
|
|
|
11
11
|
const { document: { title: _title, target, path }, highlight, } = doc;
|
|
12
12
|
const decodedPath = decodeURIComponent(target || path);
|
|
13
13
|
const title = Utils.getHighlight("title", highlight) || _title;
|
|
14
|
-
return (_jsxs(Link, { className: css.card, href: decodedPath, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx("div", { dangerouslySetInnerHTML: { __html: title }, className: classNames(css.title, { [css.overlay]: overlayTitle }) }), children] }));
|
|
14
|
+
return (_jsxs(Link, { className: css.card, href: decodedPath, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx("div", { dangerouslySetInnerHTML: { __html: title }, className: classNames(css.title, { [css.overlay]: overlayTitle }) }), children] }));
|
|
15
15
|
}
|
|
@@ -19,6 +19,6 @@ export default function OTLinks({ links, loading, sendPlausibleGoal }) {
|
|
|
19
19
|
links.map((product, i) => {
|
|
20
20
|
const { htmlTitle, link } = product;
|
|
21
21
|
const productTitle = htmlTitle.toLowerCase();
|
|
22
|
-
return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(Icons.Globe, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(Icons.ExternalLink, { className: css.linkIcon })] }) })] }, i));
|
|
22
|
+
return (_jsxs(Link, { className: css.link, href: link, target: "_blank", onClick: () => sendPlausibleGoal(link), onMouseDown: createRipple, children: [_jsx(Icons.Globe, { className: css.linkIcon }), _jsx("div", { className: css.linkContent, children: _jsxs("div", { className: css.linkTitleContainer, children: [_jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx(Icons.ExternalLink, { className: css.linkIcon })] }) })] }, i));
|
|
23
23
|
})] })] }));
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-google-search.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/components/instant-search/hooks/use-google-search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-google-search.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/components/instant-search/hooks/use-google-search.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,IAAI,EAAE,MAAM;;;;EAInD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-search.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/components/instant-search/hooks/use-search.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,aAAa,GAAG;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAkB;;;;EAY1E"}
|
|
@@ -26,6 +26,6 @@ export default function Links({ icon, linksTitle, links, pageTitleAsTitle, loadi
|
|
|
26
26
|
link.document[titleProperty];
|
|
27
27
|
const linkText = Utils.getHighlight("text", link.highlight, true) ||
|
|
28
28
|
Utils.sliceText(text);
|
|
29
|
-
return (_jsxs(Link, { href: decodedPath, className: css.link, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
|
|
29
|
+
return (_jsxs(Link, { href: decodedPath, className: css.link, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [_jsx(Icon, { className: css.linkIcon }), _jsxs("div", { className: css.linkContent, children: [parentTitle && (_jsx("div", { className: css.linkParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.linkTitle, dangerouslySetInnerHTML: { __html: linkTitle } }), linkText && (_jsx("div", { className: css.linkText, dangerouslySetInnerHTML: { __html: linkText } }))] })] }, id));
|
|
30
30
|
})] })] }));
|
|
31
31
|
}
|
|
@@ -40,7 +40,7 @@ export default function Products({ lang, products, weekNumber, loading, sendPlau
|
|
|
40
40
|
const showPrice = price !== undefined;
|
|
41
41
|
const imagePlaceholderStategy = imagePlaceholder ? "blur" : "empty";
|
|
42
42
|
const showImage = Boolean(image);
|
|
43
|
-
return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [showImage ? (_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, blurDataURL: imagePlaceholder })) : (_jsx(Placeholder, { lang: lang, type: type })), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productSubtitle, dangerouslySetInnerHTML: { __html: productSubTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
|
|
43
|
+
return (_jsxs(Link, { className: css.product, href: decodedPath, onClick: () => sendPlausibleGoal(decodedPath), onMouseDown: createRipple, children: [showImage ? (_jsx(Image, { className: css.productImage, src: image, alt: title, width: 220, height: 180, placeholder: imagePlaceholderStategy, blurDataURL: imagePlaceholder })) : (_jsx(Placeholder, { lang: lang, type: type })), _jsxs("div", { className: css.productContent, children: [parentTitle && (_jsx("div", { className: css.productParent, dangerouslySetInnerHTML: { __html: parentTitle } })), _jsx("div", { className: css.productTitle, dangerouslySetInnerHTML: { __html: productTitle } }), _jsx("div", { className: css.productSubtitle, dangerouslySetInnerHTML: { __html: productSubTitle } }), _jsx("div", { className: css.productTime, dangerouslySetInnerHTML: { __html: productTime } }), _jsx("div", { className: css.productText, dangerouslySetInnerHTML: { __html: productText } }), showPrice && (_jsx("div", { className: css.productPrice, dangerouslySetInnerHTML: { __html: price } }))] })] }, id));
|
|
44
44
|
}), !noProduct && !isOtherResultsEmpty && (_jsx("div", { className: css.otherProducts, children: _jsxs(Button, { className: css.otherProductsButton, onClick: scrollToOtherResults, children: [message(lang, "showOtherResults"), _jsx(Icons.ArrowDown, {})] }) }))] }));
|
|
45
45
|
}
|
|
46
46
|
function Placeholder({ type }) {
|
package/package.json
CHANGED
|
@@ -1,58 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ublo-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"dt-design-system": "^3.10.8",
|
|
6
|
-
"
|
|
6
|
+
"framer-motion": "^11.11.9",
|
|
7
7
|
"next": "^12.0.0 || ^13.0.0 || ^14.0.0",
|
|
8
8
|
"react": "^18.2.0",
|
|
9
9
|
"react-dom": "^18.2.0",
|
|
10
|
-
"react-leaflet": "^4.1.0",
|
|
11
|
-
"react-leaflet-cluster": "^2.1.0",
|
|
12
10
|
"ublo": "^2.0.0 || ^3.0.0"
|
|
13
11
|
},
|
|
14
12
|
"peerDependenciesMeta": {
|
|
15
|
-
"
|
|
16
|
-
"optional": true
|
|
17
|
-
},
|
|
18
|
-
"react-leaflet": {
|
|
19
|
-
"optional": true
|
|
20
|
-
},
|
|
21
|
-
"react-leaflet-cluster": {
|
|
13
|
+
"framer-motion": {
|
|
22
14
|
"optional": true
|
|
23
15
|
}
|
|
24
16
|
},
|
|
25
17
|
"dependencies": {
|
|
26
|
-
"awesome-debounce-promise": "2.1.0",
|
|
27
|
-
"classnames": "2.5.1",
|
|
28
|
-
"framer-motion": "11.
|
|
29
|
-
"react-async-hook": "4.0.0"
|
|
18
|
+
"awesome-debounce-promise": "^2.1.0",
|
|
19
|
+
"classnames": "^2.5.1",
|
|
20
|
+
"framer-motion": "^11.11.9",
|
|
21
|
+
"react-async-hook": "^4.0.0",
|
|
22
|
+
"react-player": "^2.16.0"
|
|
30
23
|
},
|
|
31
24
|
"devDependencies": {
|
|
32
|
-
"@types/css-modules": "1.0.5",
|
|
33
|
-
"@types/react": "18.
|
|
34
|
-
"@types/react-dom": "18.
|
|
35
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
36
|
-
"@typescript-eslint/parser": "7.
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"eslint": "
|
|
41
|
-
"eslint-plugin-react": "
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"react": "18.
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"ublo": "3.18.0"
|
|
25
|
+
"@types/css-modules": "^1.0.5",
|
|
26
|
+
"@types/react": "^18.3.12",
|
|
27
|
+
"@types/react-dom": "^18.3.1",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
29
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
30
|
+
"cpx2": "^7.0.2",
|
|
31
|
+
"dt-design-system": "^3.11.2",
|
|
32
|
+
"eslint": "^8.57.1",
|
|
33
|
+
"eslint-plugin-react": "^7.37.2",
|
|
34
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
35
|
+
"mv": "^2.1.1",
|
|
36
|
+
"next": "^14.2.16",
|
|
37
|
+
"react": "^18.3.1",
|
|
38
|
+
"react-dom": "^18.3.1",
|
|
39
|
+
"typescript": "^5.6.3",
|
|
40
|
+
"ublo": "^3.20.7"
|
|
49
41
|
},
|
|
50
42
|
"scripts": {
|
|
51
43
|
"clean": "rm -rf es",
|
|
52
|
-
"build": "
|
|
44
|
+
"build": "bun run clean && tsc",
|
|
53
45
|
"postbuild": "cpx 'src/**/*.{json,css,svg,png}' es",
|
|
54
|
-
"prepublishOnly": "
|
|
55
|
-
"watch": "
|
|
46
|
+
"prepublishOnly": "bun run build",
|
|
47
|
+
"watch": "bun run clean && tsc --watch & cpx './src/**/*.{json,css,svg}' es -w",
|
|
56
48
|
"lint": "eslint --ext .ts,.tsx src/"
|
|
57
49
|
},
|
|
58
50
|
"packageManager": "yarn@1.22.18",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cluster.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/cluster.js"],"names":[],"mappings":"AAGA;;;QAQC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import MarkerClusterGroup from "react-leaflet-cluster";
|
|
4
|
-
export default function Cluster({ isEditing, children }) {
|
|
5
|
-
if (isEditing)
|
|
6
|
-
return children;
|
|
7
|
-
return (_jsx(MarkerClusterGroup, { maxClusterRadius: 20, chunkedLoading: true, children: children }));
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"color-picker.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/color-picker.js"],"names":[],"mappings":"AAkBA;;;;4CAiCC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import Popover from "dt-design-system/es/popover";
|
|
5
|
-
import Button from "dt-design-system/es/button";
|
|
6
|
-
import * as Icons from "./icons/ui";
|
|
7
|
-
import styles from "./color-picker.module.css";
|
|
8
|
-
const COLORS_SET = [
|
|
9
|
-
{
|
|
10
|
-
label: "Marron",
|
|
11
|
-
value: "#4c3228",
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
label: "Prune",
|
|
15
|
-
value: "#ca7aca",
|
|
16
|
-
},
|
|
17
|
-
];
|
|
18
|
-
export default function ColorPicker({ showMarkerList, color, setColor }) {
|
|
19
|
-
const classes = classNames(styles.button, {
|
|
20
|
-
[styles.alignedToRight]: !showMarkerList,
|
|
21
|
-
});
|
|
22
|
-
return (_jsxs(Popover, { className: styles.popover, contentProps: {
|
|
23
|
-
side: "bottom",
|
|
24
|
-
align: "end",
|
|
25
|
-
alignOffset: -10,
|
|
26
|
-
}, trigger: _jsx(Button, { className: classes, children: _jsx(Icons.ColorPalette, {}) }), children: [_jsx("div", { className: styles.title, children: "Couleur des trac\u00E9s" }), COLORS_SET.map(({ value, label }) => (_jsxs("div", { className: styles.choice, onClick: () => setColor(value), "data-checked": color === value, children: [_jsx("span", { className: styles.tag, "data-color": value }), _jsx("div", { children: label })] }, value)))] }));
|
|
27
|
-
}
|