@tesouro/embedded-components-react 0.2.308 → 0.2.312

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,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.2.308", n = "23859351e9e0bc83c3468ea19507174c7848d694", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.2.312", n = "fa1432b1656abecf4dc5b276d5884345a6055bf9", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -48,7 +48,7 @@ function o({ selection: i, defaultSelection: a, sections: o }) {
48
48
  caller: r
49
49
  }), [y, b] = n({
50
50
  prop: i?.settings?.section,
51
- defaultProp: void 0,
51
+ defaultProp: a?.settings?.section,
52
52
  caller: r
53
53
  }), x = e((e) => {
54
54
  "section" in e && c(e.section), e.accounts && "accountId" in e.accounts && u(e.accounts.accountId ?? null), e.creditCards && ("cardId" in e.creditCards && f(e.creditCards.cardId ?? null), "pagination" in e.creditCards && g(e.creditCards.pagination)), e.debitCards && ("cardId" in e.debitCards && m(e.debitCards.cardId ?? null), "pagination" in e.debitCards && v(e.debitCards.pagination)), e.settings && "section" in e.settings && b(e.settings.section);
@@ -105,10 +105,11 @@ function C() {
105
105
  return /* @__PURE__ */ f(m, { children: e.expensePlaceholders.expensesUnavailable });
106
106
  }
107
107
  function w() {
108
- let { selection: e, navigate: t } = d();
108
+ let { selection: e, resolvedSelection: t, navigate: n } = d();
109
109
  return /* @__PURE__ */ f(l, {
110
110
  selectedSection: e?.settings?.section,
111
- onSelectedSectionChange: (e) => t({ settings: { section: e } })
111
+ defaultSelectedSection: t.settings.section,
112
+ onSelectedSectionChange: (e) => n({ settings: { section: e } })
112
113
  });
113
114
  }
114
115
  var T = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.2.308",
3
+ "version": "0.2.312",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {