ublo-lib 1.49.7 → 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/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/package.json +1 -1
|
@@ -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"}
|