@tesouro/embedded-components-react 0.5.27 → 0.5.29

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.
Files changed (121) hide show
  1. package/dist/index.css +18 -6
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +2 -44
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +7 -7
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +52 -67
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +15 -12
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +57 -62
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +68 -207
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +278 -175
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +13 -126
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +47 -12
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +53 -47
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +204 -49
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +32 -202
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +234 -32
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +21 -240
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +532 -19
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +4 -436
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +42 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +230 -35
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +3 -233
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +4 -3
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +44 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +1 -46
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -1
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +11 -6
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +127 -11
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +3 -129
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +127 -3
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +8 -124
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +7 -8
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +46 -8
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +18 -43
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +28 -20
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +82 -27
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +47 -83
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +250 -47
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +122 -241
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +206 -126
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +3 -213
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +8 -4
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +113 -6
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +1 -115
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +24 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +39 -33
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index101.js +10 -11
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index102.js +123 -8
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index103.js +2 -170
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index104.js +18 -2
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index105.js +7 -11
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index106.js +158 -96
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index107.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index108.js +11 -7
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index109.js +100 -44
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index111.js +10 -0
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index112.js +52 -0
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index113.js +2 -0
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -1
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +20 -22
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +4 -9
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +103 -146
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +3 -2
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +93 -88
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +15 -16
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index48.js +1 -0
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +43 -29
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +55 -51
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +9 -2
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +33 -1
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +2 -8
  78. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -39
  79. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +0 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +6 -2
  81. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +34 -31
  82. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +2 -37
  83. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +34 -10
  84. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -201
  85. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +39 -3
  86. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +3 -8
  87. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +187 -350
  88. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +3 -10
  89. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +13 -5
  90. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +356 -85
  91. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -0
  92. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +9 -2
  93. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +87 -119
  94. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -94
  95. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +125 -2
  96. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +25 -4
  97. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +90 -26
  98. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +3 -3
  99. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +26 -30
  100. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +4 -9
  101. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +30 -102
  102. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +9 -14
  103. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index99.js +85 -104
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +3 -0
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +1 -1
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index197.js +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +1 -1
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +291 -351
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +13 -21
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +30 -30
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +2 -2
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +1 -1
  113. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index.js +5 -5
  114. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +17 -17
  115. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.js +4 -0
  116. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +92 -87
  117. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  118. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  119. package/package.json +1 -1
  120. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +0 -25
  121. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +0 -28
@@ -1,22 +1,14 @@
1
1
  import { useEffect as e, useState as t } from "react";
2
2
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js
3
3
  var n = {
4
- mm: {
5
- width: 210,
6
- height: 297
7
- },
8
- cm: {
9
- width: 21,
10
- height: 29.7
11
- },
12
- inches: {
13
- width: 8.27,
14
- height: 11.69
15
- }
16
- }, r = () => {
17
- let [r, i] = t({
18
- width: 794,
19
- height: 1123,
4
+ width: 8.5,
5
+ height: 11
6
+ }, r = {
7
+ width: 816,
8
+ height: 1056
9
+ }, i = () => {
10
+ let [i, a] = t({
11
+ ...r,
20
12
  dpi: 96
21
13
  });
22
14
  return e(() => {
@@ -36,12 +28,12 @@ var n = {
36
28
  t = n;
37
29
  break;
38
30
  }
39
- let r = window.devicePixelRatio || 1, a = t * r, o = document.createElement("div");
31
+ let r = window.devicePixelRatio || 1, i = t * r, o = document.createElement("div");
40
32
  o.style.width = "1in", o.style.height = "1in", o.style.position = "absolute", o.style.left = "-9999px", document.body.appendChild(o);
41
33
  let s = o.getBoundingClientRect(), c = Math.round(s.width);
42
34
  document.body.removeChild(o);
43
- let l = c > 0 ? c : a, u = Math.round(n.inches.width * l), d = Math.round(n.inches.height * l);
44
- i({
35
+ let l = c > 0 ? c : i, u = Math.round(n.width * l), d = Math.round(n.height * l);
36
+ a({
45
37
  width: u,
46
38
  height: d,
47
39
  dpi: l
@@ -50,7 +42,7 @@ var n = {
50
42
  return e(), window.addEventListener("resize", e), () => {
51
43
  window.removeEventListener("resize", e);
52
44
  };
53
- }, []), r;
45
+ }, []), i;
54
46
  };
55
47
  //#endregion
56
- export { r as useA4Dimensions };
48
+ export { r as LETTER_PX, i as useLetterDimensions };
@@ -2,47 +2,47 @@ import { useIsMounted as e } from "./index28.js";
2
2
  import "./index216.js";
3
3
  import { useResizeObserver as t } from "./index504.js";
4
4
  import { useWindowResize as n } from "./index505.js";
5
- import { useA4Dimensions as r } from "./index506.js";
6
- import { useCallback as i, useEffect as a, useRef as o, useState as s } from "react";
5
+ import { LETTER_PX as r, useLetterDimensions as i } from "./index506.js";
6
+ import { useCallback as a, useEffect as o, useRef as s, useState as c } from "react";
7
7
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js
8
- var c = (c, l, u = {}) => {
9
- let { minWidth: d, minHeight: f, containerPadding: p = 96, minScale: m = 1, initialDelay: h = 100, useAdaptiveDimensions: g = !0 } = u, [_, v] = s(1), y = o(!1), b = e(), x = r(), S = d ?? (g ? x.width : 794), C = f ?? (g ? x.height : 1123), w = i(() => {
10
- if (!c.current || !l.current || typeof window > "u" || !b.current) return;
11
- let e = c.current, t = e.clientWidth - p, n = e.clientHeight - p;
12
- if (t <= 0 || n <= 0 || S <= 0 || C <= 0) {
13
- v(m);
8
+ var l = (l, u, d = {}) => {
9
+ let { minWidth: f, minHeight: p, containerPadding: m = 96, minScale: h = 1, initialDelay: g = 100, useAdaptiveDimensions: _ = !0 } = d, [v, y] = c(1), b = s(!1), x = e(), S = i(), C = f ?? (_ ? S.width : r.width), w = p ?? (_ ? S.height : r.height), T = a(() => {
10
+ if (!l.current || !u.current || typeof window > "u" || !x.current) return;
11
+ let e = l.current, t = e.clientWidth - m, n = e.clientHeight - m;
12
+ if (t <= 0 || n <= 0 || C <= 0 || w <= 0) {
13
+ y(h);
14
14
  return;
15
15
  }
16
- let r = t / S, i = n / C;
17
- v(Math.max(Math.min(r, i), m));
16
+ let r = t / C, i = n / w;
17
+ y(Math.max(Math.min(r, i), h));
18
18
  }, [
19
- c,
20
19
  l,
21
- b,
22
- p,
23
- S,
20
+ u,
21
+ x,
22
+ m,
24
23
  C,
25
- m
24
+ w,
25
+ h
26
26
  ]);
27
- n(w, 100);
28
- let { observe: T, disconnect: E } = t(w, 50);
29
- return a(() => {
27
+ n(T, 100);
28
+ let { observe: E, disconnect: D } = t(T, 50);
29
+ return o(() => {
30
30
  if (typeof window > "u") return;
31
31
  let e = setTimeout(() => {
32
- w(), y.current = !0;
33
- }, h);
34
- return c.current && T(c.current), () => {
35
- clearTimeout(e), E();
32
+ T(), b.current = !0;
33
+ }, g);
34
+ return l.current && E(l.current), () => {
35
+ clearTimeout(e), D();
36
36
  };
37
37
  }, [
38
- T,
39
38
  E,
40
- h,
41
- w,
42
- c
43
- ]), a(() => {
44
- c.current && y.current && T(c.current);
45
- }, [c, T]), _;
39
+ D,
40
+ g,
41
+ T,
42
+ l
43
+ ]), o(() => {
44
+ l.current && b.current && E(l.current);
45
+ }, [l, E]), v;
46
46
  };
47
47
  //#endregion
48
- export { c as useAdaptiveScale };
48
+ export { l as useAdaptiveScale };
@@ -29,8 +29,8 @@ var s = ({ address: s, counterpart: c, currency: l, invoiceData: u, entityData:
29
29
  alignItems: "safe center"
30
30
  },
31
31
  children: /* @__PURE__ */ o(i, {
32
- ratio: 21 / 29.7,
33
- className: e("ttw:max-w-[21cm]", "ttw:min-w-[794px] ttw:min-h-[1123px]", "ttw:transition-transform ttw:duration-200 ttw:ease-in-out", "motion-reduce:ttw:transition-none", "ttw:origin-center", "ttw:shrink-0", "ttw:[contain:\"layout style\"]"),
32
+ ratio: 8.5 / 11,
33
+ className: e("ttw:max-w-[8.5in]", "ttw:min-w-[816px] ttw:min-h-[1056px]", "ttw:transition-transform ttw:duration-200 ttw:ease-in-out", "motion-reduce:ttw:transition-none", "ttw:origin-center", "ttw:shrink-0", "ttw:[contain:\"layout style\"]"),
34
34
  style: { transform: `scale(${g})` },
35
35
  children: /* @__PURE__ */ o("div", {
36
36
  ref: m,