@tesouro/embedded-components-react 0.5.278 → 0.5.279

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.
@@ -55,7 +55,7 @@ function u(e) {
55
55
  return typeof e == "string";
56
56
  }
57
57
  function d(e) {
58
- if (!(typeof window > "u")) try {
58
+ if (typeof window < "u") try {
59
59
  window.sessionStorage.setItem(l, JSON.stringify([...e]));
60
60
  } catch {}
61
61
  }
@@ -6,7 +6,7 @@ var r = (r, i = 50) => {
6
6
  let a = n(r), o = n(void 0), s = n(void 0), c = e();
7
7
  a.current = r;
8
8
  let l = (e) => {
9
- !e || typeof window > "u" || (s.current && s.current.disconnect(), s.current = new ResizeObserver(() => {
9
+ e && typeof window < "u" && (s.current && s.current.disconnect(), s.current = new ResizeObserver(() => {
10
10
  o.current && clearTimeout(o.current), o.current = setTimeout(() => {
11
11
  c.current && a.current();
12
12
  }, i);
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.278", n = "004de809dda494c7f5bc510951192d5b19603120", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.279", n = "f69e356f3d234e160066ea5faa57fc65b2e896b2", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -1,7 +1,7 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetDomEvents.js
2
2
  var e = "tesouro-new-external-bank-account-linked-success", t = "tesouro-new-embedded-bank-account-created-success";
3
3
  function n(e) {
4
- typeof window > "u" || window.dispatchEvent(new CustomEvent(e));
4
+ typeof window < "u" && window.dispatchEvent(new CustomEvent(e));
5
5
  }
6
6
  //#endregion
7
7
  export { t as TESOURO_NEW_EMBEDDED_BANK_ACCOUNT_CREATED_SUCCESS_EVENT, e as TESOURO_NEW_EXTERNAL_BANK_ACCOUNT_LINKED_SUCCESS_EVENT, n as emitWidgetDomEvent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.278",
3
+ "version": "0.5.279",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {