ublo-lib 1.47.40 → 1.47.42

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.
@@ -72,9 +72,8 @@
72
72
  .informationButton {
73
73
  --ds-button-radius: var(--ds-radius-200, 8px) var(--ds-radius-200, 8px) 0 0;
74
74
 
75
- position: sticky;
75
+ position: fixed;
76
76
  left: calc(96% - 40px);
77
77
  bottom: 0;
78
- margin-top: 10px;
79
78
  transform-origin: top center;
80
79
  }
@@ -8,7 +8,8 @@ import Vakario from "./vakario";
8
8
  import Elloha from "./elloha";
9
9
  import OtherProducts from "./other-products";
10
10
  import Tunnel from "./tunnel";
11
+ import TunnelNew from "./tunnel-new";
11
12
  import Account from "./account";
12
13
  import { loadWidget } from "./utils";
13
- export { Script, loadWidget, Lodging, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, Account, };
14
+ export { Script, loadWidget, Lodging, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, TunnelNew, Account, };
14
15
  //# 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,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,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EACL,MAAM,EACN,UAAU,EACV,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,GAAG,EACH,OAAO,EACP,MAAM,EACN,aAAa,EACb,MAAM,EACN,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,OAAO,MAAM,WAAW,CAAC;AAChC,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,SAAS,EACT,OAAO,EACP,MAAM,EACN,GAAG,EACH,OAAO,EACP,MAAM,EACN,aAAa,EACb,MAAM,EACN,SAAS,EACT,OAAO,GACR,CAAC"}
@@ -8,6 +8,7 @@ import Vakario from "./vakario";
8
8
  import Elloha from "./elloha";
9
9
  import OtherProducts from "./other-products";
10
10
  import Tunnel from "./tunnel";
11
+ import TunnelNew from "./tunnel-new";
11
12
  import Account from "./account";
12
13
  import { loadWidget } from "./utils";
13
- export { Script, loadWidget, Lodging, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, Account, };
14
+ export { Script, loadWidget, Lodging, SkiRental, SkiPass, LiftJb, Esf, Vakario, Elloha, OtherProducts, Tunnel, TunnelNew, Account, };
@@ -0,0 +1,32 @@
1
+ import * as React from "react";
2
+ import type { GlobalOptions, GlobalPresets } from "./types";
3
+ type Show = "cart" | "offers" | "stay";
4
+ type Options = GlobalOptions & {
5
+ esfUrl?: string;
6
+ skiPassUrl?: string;
7
+ lodgingUrl?: string;
8
+ activitiesUrl?: string;
9
+ wellnessUrl?: string;
10
+ skiRentalUrl?: string;
11
+ privateTransferUrl?: string;
12
+ shuttleUrl?: string;
13
+ excursionUrl?: string;
14
+ parkingUrl?: string;
15
+ textileUrl?: string;
16
+ daycareUrl?: string;
17
+ skiSchoolUrl?: string;
18
+ customOffers?: string;
19
+ cartExpanded?: boolean;
20
+ cartChanged?: (cart: any) => void;
21
+ show?: Show[];
22
+ };
23
+ type Presets = GlobalPresets & {};
24
+ type Props = {
25
+ options?: Options;
26
+ presets?: Presets;
27
+ children?: React.ReactNode;
28
+ };
29
+ declare const _default: React.MemoExoticComponent<typeof TunnelNew>;
30
+ export default _default;
31
+ declare function TunnelNew({ options, presets, children }: Props): React.ReactNode;
32
+ //# sourceMappingURL=tunnel-new.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tunnel-new.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem/tunnel-new.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE5D,KAAK,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEvC,KAAK,OAAO,GAAG,aAAa,GAAG;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC;CACf,CAAC;AAEF,KAAK,OAAO,GAAG,aAAa,GAAG,EAAE,CAAC;AAElC,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,wBAAqC;AAErC,iBAAS,SAAS,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,KAAK,mBAkBvD"}
@@ -0,0 +1,19 @@
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(TunnelNew);
5
+ function TunnelNew({ options, presets, children }) {
6
+ React.useEffect(() => {
7
+ const categoryCode = window.sessionStorage.getItem("categoryCode") || undefined;
8
+ const patchedOptions = {
9
+ categoryCode,
10
+ ...options,
11
+ analytics: (...args) => {
12
+ options?.analytics?.apply(null, args);
13
+ Plausible.callback.apply(null, args);
14
+ },
15
+ };
16
+ Utils.loadWidget("tunnelNew", patchedOptions, presets);
17
+ }, [options, presets]);
18
+ return children;
19
+ }
@@ -1,4 +1,4 @@
1
- type Widget = "tunnel" | "lodging" | "esf" | "skiRental" | "skiPass" | "liftJb" | "transfer" | "shuttle" | "excursion" | "otherProducts" | "genericLine" | "esfCustom" | "vakario" | "elloha" | "widgetPackage" | "customerAccount";
1
+ type Widget = "tunnel" | "tunnelNew" | "lodging" | "esf" | "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,SAAS,GACT,KAAK,GACL,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,QAAQ,GACR,WAAW,GACX,SAAS,GACT,KAAK,GACL,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.47.40",
3
+ "version": "1.47.42",
4
4
  "peerDependencies": {
5
5
  "classnames": "^2.5.1",
6
6
  "dt-design-system": "^3.12.0",