ublo-lib 1.17.6 → 1.17.7

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.
@@ -2,6 +2,7 @@ import * as React from "react";
2
2
  import { useUbloContext } from "ublo/with-ublo";
3
3
  import PackagesSelector from "../components/packages-selector";
4
4
  import { openMseM } from "../utils/msem-widget";
5
+ import * as Plausible from "../components/plausible";
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
7
  const preview = typeof window !== "undefined" && window.location.search.indexOf("preview") !== -1;
7
8
  const buttonStyles = `
@@ -79,6 +80,7 @@ const usePackages = (defaultPopupContent, setPopupContent, cartUrl, selector = "
79
80
  packageId,
80
81
  catalog: "PUBLIC",
81
82
  preview,
83
+ analytics: Plausible.callback,
82
84
  theme: "/theme.css",
83
85
  cartUrl
84
86
  };
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { memo, useEffect } from "react";
3
+ import * as Plausible from "../../common/components/plausible";
3
4
  import { jsx as _jsx } from "react/jsx-runtime";
4
5
  export const preview = typeof window !== "undefined" && window.location.search.indexOf("preview") !== -1;
5
6
  export const loadJS = (url, id) => {
@@ -35,6 +36,7 @@ const CPForm = ({
35
36
  fullWidth: true,
36
37
  maxWidth: 1400,
37
38
  groundedTo: "#msem-cp",
39
+ analytics: Plausible.callback,
38
40
  cartUrl: cart[0].path,
39
41
  scrollOffset: 300
40
42
  };
@@ -4,6 +4,7 @@ import Button from "dt-design-system/es/button";
4
4
  import * as Icons from "dt-design-system/es/icons";
5
5
  import { message } from "./messages";
6
6
  import { loadWigetMseM, preview } from "./services/widgets";
7
+ import * as Plausible from "../../../common/components/plausible";
7
8
  import css from "./booking.module.css";
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
9
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -59,6 +60,7 @@ const Booking = ({
59
60
  cartUrl,
60
61
  fullWidth: true,
61
62
  groundedTo: "#msem-magic-box",
63
+ analytics: Plausible.callback,
62
64
  show: ["vel"]
63
65
  };
64
66
  const presets = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.17.6",
3
+ "version": "1.17.7",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^2.9.0",
6
6
  "leaflet": "^1.9.1",