ublo-lib 1.47.2 → 1.47.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/plausible/services/callback.ts"],"names":[],"mappings":"AAEA,KAAK,IAAI,GAAG;IACV,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAkBF,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,YAAY,EAAE,WAAW,EACzB,QAAQ,EACR,KAAU,EACV,OAAO,EACP,MAAM,EACN,QAAgB,GACjB,EAAE,KAAK,QA6HP"}
1
+ {"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../../../../src/common/components/plausible/services/callback.ts"],"names":[],"mappings":"AAEA,KAAK,IAAI,GAAG;IACV,OAAO,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,EAAE,MAAM,CAAC;QACvB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAYF,wBAAgB,IAAI,CAAC,EACnB,KAAK,EACL,YAAY,EAAE,WAAW,EACzB,QAAQ,EACR,KAAU,EACV,OAAO,EACP,MAAM,EACN,QAAgB,GACjB,EAAE,KAAK,QAgIP"}
@@ -96,6 +96,9 @@ export function MseM({ event, payment_type: paymentType, execcode, items = [], o
96
96
  }
97
97
  }
98
98
  else {
99
+ const isQuotation = checkQuotation(amount);
100
+ if (isQuotation)
101
+ return;
99
102
  sendGoal(name, { cartId, orderId, Code: execcode, stayFrom: stay?.from, rawData }, revenue);
100
103
  }
101
104
  break;
@@ -128,6 +131,11 @@ function formatPeekPerformancesItem(items) {
128
131
  };
129
132
  });
130
133
  }
134
+ function checkQuotation(amount) {
135
+ const search = window.location.search;
136
+ const hasQuotation = new URLSearchParams(search).has("hasQuotation");
137
+ return hasQuotation && amount === 0;
138
+ }
131
139
  function getStay() {
132
140
  const stay = window.sessionStorage.getItem("stay");
133
141
  if (stay) {
@@ -1 +1 @@
1
- {"version":3,"file":"scrollbar-size.d.ts","sourceRoot":"","sources":["../../../src/common/components/scrollbar-size.js"],"names":[],"mappings":"AAEA,iFA8BC"}
1
+ {"version":3,"file":"scrollbar-size.d.ts","sourceRoot":"","sources":["../../../src/common/components/scrollbar-size.js"],"names":[],"mappings":"AAEA,iFAwCC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  export default function ScrollbarSize() {
4
4
  const ref = React.useRef();
@@ -8,15 +8,21 @@ export default function ScrollbarSize() {
8
8
  setScrollbarSize(ref.current ? ref.current.offsetWidth - ref.current.clientWidth : 0);
9
9
  }
10
10
  }, [scrollbarSize]);
11
- return scrollbarSize !== undefined ? (_jsx("style", { jsx: true, global: true, children: `
12
- :root {
13
- --scrollbar-size: ${scrollbarSize}px;
14
- }
15
- ` })) : (_jsx("div", { ref: ref, style: {
16
- position: "absolute",
17
- top: "-9999px",
18
- width: "50px",
19
- height: "50px",
20
- overflow: "scroll",
21
- } }));
11
+ React.useEffect(() => {
12
+ if (scrollbarSize !== undefined) {
13
+ const styleTag = document.createElement("style");
14
+ styleTag.innerHTML = `:root { --scrollbar-size: ${scrollbarSize}px; }`;
15
+ document.head.appendChild(styleTag);
16
+ return () => {
17
+ document.head.removeChild(styleTag);
18
+ };
19
+ }
20
+ }, [scrollbarSize]);
21
+ return (_jsx(_Fragment, { children: scrollbarSize === undefined && (_jsx("div", { ref: ref, style: {
22
+ position: "absolute",
23
+ top: "-9999px",
24
+ width: "50px",
25
+ height: "50px",
26
+ overflow: "scroll",
27
+ } })) }));
22
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.47.2",
3
+ "version": "1.47.3",
4
4
  "peerDependencies": {
5
5
  "classnames": "^2.5.1",
6
6
  "dt-design-system": "^3.12.0",