ublo-lib 1.49.8 → 1.49.9
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/esf/components/instant-search/services/api.d.ts.map +1 -1
- package/es/esf/components/instant-search/services/api.js +1 -3
- package/es/future/components/msem/activity.d.ts +28 -0
- package/es/future/components/msem/activity.d.ts.map +1 -0
- package/es/future/components/msem/activity.js +17 -0
- package/es/future/components/msem/index.d.ts +2 -1
- package/es/future/components/msem/index.d.ts.map +1 -1
- package/es/future/components/msem/index.js +2 -1
- package/es/future/components/msem/utils.d.ts +1 -1
- package/es/future/components/msem/utils.d.ts.map +1 -1
- package/es/market-place/components/instant-search/services/api.d.ts.map +1 -1
- package/es/market-place/components/instant-search/services/api.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/instant-search/services/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/esf/components/instant-search/services/api.ts"],"names":[],"mappings":"AAKA,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,MAA+F,EACxG,cAAc,CAAC,EAAE,MAAM,gBAaxB"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import * as Fetcher from "../../../../common/utils/fetcher";
|
|
2
|
-
|
|
3
|
-
const { publicRuntimeConfig } = getConfig();
|
|
4
|
-
const { searchApi: api = "https://search.ublo.app/api" } = publicRuntimeConfig;
|
|
2
|
+
const api = "https://search.ublo.app/api";
|
|
5
3
|
export function fetchResults(site, lang, query, queryBy = "title,subtitle,text,pageTitle,seoKeywords,parentTitle,seoTitle,meetingPoint,imageAlt", queryByWeights) {
|
|
6
4
|
const endpoint = `${api}/ublo-search/search/esf/v2`;
|
|
7
5
|
return Fetcher.post(endpoint, {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { GlobalOptions, GlobalPresets } from "./types";
|
|
3
|
+
type Options = GlobalOptions & {
|
|
4
|
+
merchant?: string;
|
|
5
|
+
cartUrl?: string;
|
|
6
|
+
cartChanged?: (cart: any) => void;
|
|
7
|
+
onActivitySelect?: (activity: any) => void;
|
|
8
|
+
prefixUrl?: string;
|
|
9
|
+
couponDisabled?: boolean;
|
|
10
|
+
categoryGroup?: string;
|
|
11
|
+
};
|
|
12
|
+
type Presets = GlobalPresets & {
|
|
13
|
+
categories?: string[];
|
|
14
|
+
tag?: string;
|
|
15
|
+
products?: string[];
|
|
16
|
+
hideUnavaibleProduct?: boolean;
|
|
17
|
+
productSlug?: string;
|
|
18
|
+
show?: string[];
|
|
19
|
+
};
|
|
20
|
+
type Props = {
|
|
21
|
+
options?: Options;
|
|
22
|
+
presets?: Presets;
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: React.MemoExoticComponent<typeof Activity>;
|
|
26
|
+
export default _default;
|
|
27
|
+
declare function Activity({ options, presets, children }: Props): React.ReactNode;
|
|
28
|
+
//# sourceMappingURL=activity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/activity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5D,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,IAAI,CAAC;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;;AAEF,wBAAoC;AAEpC,iBAAS,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,mBActD"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as Utils from "./utils";
|
|
3
|
+
import * as Plausible from "../../../future/components/plausible";
|
|
4
|
+
export default React.memo(Activity);
|
|
5
|
+
function Activity({ options, presets, children }) {
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
const patchedOptions = {
|
|
8
|
+
...options,
|
|
9
|
+
analytics: (...args) => {
|
|
10
|
+
options?.analytics?.apply(null, args);
|
|
11
|
+
Plausible.callback.apply(null, args);
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
Utils.loadWidget("activityV2", patchedOptions, presets);
|
|
15
|
+
}, [options, presets]);
|
|
16
|
+
return children;
|
|
17
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Script } from "./script";
|
|
2
|
+
import Activity from "./activity";
|
|
2
3
|
import Lodging from "./lodging";
|
|
3
4
|
import EasyrentRental from "./easyrent-rental";
|
|
4
5
|
import SkiRental from "./ski-rental";
|
|
@@ -12,5 +13,5 @@ import Tunnel from "./tunnel";
|
|
|
12
13
|
import TunnelNew from "./tunnel-new";
|
|
13
14
|
import Account from "./account";
|
|
14
15
|
import { loadWidget } from "./utils";
|
|
15
|
-
export { Script, loadWidget, Lodging, EasyrentRental, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, TunnelNew, Account, };
|
|
16
|
+
export { Activity, Script, loadWidget, Lodging, EasyrentRental, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, TunnelNew, Account, };
|
|
16
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,cAAc,EACd,SAAS,EACT,OAAO,EACP,MAAM,EACN,GAAG,EACH,OAAO,EACP,MAAM,EACN,aAAa,EACb,MAAM,EACN,SAAS,EACT,OAAO,GACR,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,MAAM,MAAM,WAAW,CAAC;AAC/B,OAAO,GAAG,MAAM,OAAO,CAAC;AACxB,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EACL,QAAQ,EACR,MAAM,EACN,UAAU,EACV,OAAO,EACP,cAAc,EACd,SAAS,EACT,OAAO,EACP,MAAM,EACN,GAAG,EACH,OAAO,EACP,MAAM,EACN,aAAa,EACb,MAAM,EACN,SAAS,EACT,OAAO,GACR,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Script } from "./script";
|
|
2
|
+
import Activity from "./activity";
|
|
2
3
|
import Lodging from "./lodging";
|
|
3
4
|
import EasyrentRental from "./easyrent-rental";
|
|
4
5
|
import SkiRental from "./ski-rental";
|
|
@@ -12,4 +13,4 @@ import Tunnel from "./tunnel";
|
|
|
12
13
|
import TunnelNew from "./tunnel-new";
|
|
13
14
|
import Account from "./account";
|
|
14
15
|
import { loadWidget } from "./utils";
|
|
15
|
-
export { Script, loadWidget, Lodging, EasyrentRental, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, TunnelNew, Account, };
|
|
16
|
+
export { Activity, Script, loadWidget, Lodging, EasyrentRental, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, TunnelNew, Account, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type Widget = "tunnel" | "tunnelNew" | "lodging" | "esf" | "easyrentRental" | "skiRental" | "skiPass" | "liftJb" | "transfer" | "shuttle" | "excursion" | "otherProducts" | "genericLine" | "esfCustom" | "vakario" | "elloha" | "widgetPackage" | "customerAccount";
|
|
1
|
+
type Widget = "activityV2" | "tunnel" | "tunnelNew" | "lodging" | "esf" | "easyrentRental" | "skiRental" | "skiPass" | "liftJb" | "transfer" | "shuttle" | "excursion" | "otherProducts" | "genericLine" | "esfCustom" | "vakario" | "elloha" | "widgetPackage" | "customerAccount";
|
|
2
2
|
export declare function loadWidget(widget: Widget, options?: {}, presets?: {}): void;
|
|
3
3
|
export {};
|
|
4
4
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/utils.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GACP,QAAQ,GACR,WAAW,GACX,SAAS,GACT,KAAK,GACL,gBAAgB,GAChB,WAAW,GACX,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,WAAW,GACX,eAAe,GACf,aAAa,GACb,WAAW,GACX,SAAS,GACT,QAAQ,GACR,eAAe,GACf,iBAAiB,CAAC;AAEtB,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,EAAE,OAAO,KAAK,QAgBpE"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/utils.ts"],"names":[],"mappings":"AAAA,KAAK,MAAM,GACP,YAAY,GACZ,QAAQ,GACR,WAAW,GACX,SAAS,GACT,KAAK,GACL,gBAAgB,GAChB,WAAW,GACX,SAAS,GACT,QAAQ,GACR,UAAU,GACV,SAAS,GACT,WAAW,GACX,eAAe,GACf,aAAa,GACb,WAAW,GACX,SAAS,GACT,QAAQ,GACR,eAAe,GACf,iBAAiB,CAAC;AAEtB,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,EAAE,OAAO,KAAK,QAgBpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/components/instant-search/services/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../../src/market-place/components/instant-search/services/api.ts"],"names":[],"mappings":"AAMA,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,MAAgE,EACzE,cAAc,CAAC,EAAE,MAAM,gBAaxB;AAED,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QACR,SAAS,EAAE;YACT,GAAG,EAAE,MAAM,CAAC;SACb,EAAE,CAAC;QACJ,aAAa,EAAE;YACb,GAAG,EAAE,MAAM,CAAC;SACb,EAAE,CAAC;KACL,CAAC;CACH,CAAC;AAEF,wBAAsB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,iCAM/D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import getConfig from "next/config";
|
|
2
2
|
import { GET, POST } from "../../../../future/utils/fetcher";
|
|
3
3
|
const { publicRuntimeConfig } = getConfig();
|
|
4
|
-
const { searchApi: api
|
|
4
|
+
const { searchApi: api, googleSites } = publicRuntimeConfig;
|
|
5
5
|
export function fetchResults(site, lang, query, queryBy = "title,text,pageTitle,seoKeywords,parentTitle,seoTitle", queryByWeights) {
|
|
6
6
|
const endpoint = `${api}/ublo-search/search/market-place/v2`;
|
|
7
7
|
return POST(endpoint, {
|