@wf-financing/ui 4.7.2 → 4.7.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.
- package/CHANGELOG.md +6 -0
- package/dist/index.es.js +5 -3
- package/package.json +2 -3
- package/src/components/modal/Modal.tsx +2 -0
package/CHANGELOG.md
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -24312,7 +24312,7 @@ const Qz = ({ rootElement: e }) => {
|
|
|
24312
24312
|
rootName: "bannerRoot",
|
|
24313
24313
|
rootElement: "div",
|
|
24314
24314
|
rootElementId: "banner-root"
|
|
24315
|
-
}, n8 = [Jz, e8, t8], P0 = "4.7.
|
|
24315
|
+
}, n8 = [Jz, e8, t8], P0 = "4.7.3", r8 = (e) => n8.reduce((t, n) => {
|
|
24316
24316
|
const { rootElement: r, rootElementId: i, rootName: o } = n;
|
|
24317
24317
|
let l = e.getElementById(i);
|
|
24318
24318
|
return l || (l = document.createElement(r), l.id = i, e.appendChild(l)), {
|
|
@@ -25889,7 +25889,7 @@ var mi, Qk, L8 = (Qk = class extends wh {
|
|
|
25889
25889
|
T(this, Et).clear(), T(this, Us).clear();
|
|
25890
25890
|
}
|
|
25891
25891
|
}, Et = new WeakMap(), Us = new WeakMap(), Ws = new WeakMap(), Sl = new WeakMap(), El = new WeakMap(), Gs = new WeakMap(), kl = new WeakMap(), Cl = new WeakMap(), Xk);
|
|
25892
|
-
const M8 = "https://api.wayflyer.com/financing", D8 = "https://sandbox-api.wayflyer.com/financing", F8 = "/v1/company/cta/", B8 = "/v1/company/hosted-application/", j8 = "/v1/company/hosted-application/continue/", z8 = "/v1/company/cta/dismiss/", H8 = "4.7.
|
|
25892
|
+
const M8 = "https://api.wayflyer.com/financing", D8 = "https://sandbox-api.wayflyer.com/financing", F8 = "/v1/company/cta/", B8 = "/v1/company/hosted-application/", j8 = "/v1/company/hosted-application/continue/", z8 = "/v1/company/cta/dismiss/", H8 = "4.7.3";
|
|
25893
25893
|
class V8 extends Error {
|
|
25894
25894
|
constructor(t, n, r) {
|
|
25895
25895
|
super(r || `Request failed: ${t} ${n}`), this.status = t, this.statusText = n, this.name = "ApiError";
|
|
@@ -35900,6 +35900,7 @@ const PG = nP(Mz), _G = nP(Fz), Rk = { transform: "scale(0.7)", opacity: 0 }, RG
|
|
|
35900
35900
|
exit: Rk,
|
|
35901
35901
|
transition: { duration: 0.2 },
|
|
35902
35902
|
style: { width: "420px", border: "none", maxWidth: "90vw", maxHeight: "100vh" },
|
|
35903
|
+
UNSTABLE_portalContainer: i,
|
|
35903
35904
|
children: [
|
|
35904
35905
|
/* @__PURE__ */ H.jsx(
|
|
35905
35906
|
PG,
|
|
@@ -35909,7 +35910,8 @@ const PG = nP(Mz), _G = nP(Fz), Rk = { transform: "scale(0.7)", opacity: 0 }, RG
|
|
|
35909
35910
|
initial: Ik,
|
|
35910
35911
|
animate: IG,
|
|
35911
35912
|
exit: Ik,
|
|
35912
|
-
transition: { duration: 0.2 }
|
|
35913
|
+
transition: { duration: 0.2 },
|
|
35914
|
+
UNSTABLE_portalContainer: i
|
|
35913
35915
|
}
|
|
35914
35916
|
),
|
|
35915
35917
|
/* @__PURE__ */ H.jsxs(Bz, { role: "dialog", "aria-labelledby": r, children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wf-financing/ui",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.3",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./dist/index.es.js",
|
|
@@ -38,10 +38,9 @@
|
|
|
38
38
|
"react-markdown": "^10.1.0",
|
|
39
39
|
"styled-components": "^6.1.19",
|
|
40
40
|
"@wf-financing/embedded-types": "1.1.1",
|
|
41
|
-
"@wf-financing/headless": "3.3.3",
|
|
42
41
|
"@wf-financing/logger": "2.2.2",
|
|
43
42
|
"@wf-financing/ui-assets": "1.1.3",
|
|
44
|
-
"@wf-financing/
|
|
43
|
+
"@wf-financing/headless": "3.3.3"
|
|
45
44
|
},
|
|
46
45
|
"publishConfig": {
|
|
47
46
|
"access": "public"
|
|
@@ -38,6 +38,7 @@ export const Modal = ({ isModalOpen, setIsModalOpen, children }: ModalProps) =>
|
|
|
38
38
|
exit={small}
|
|
39
39
|
transition={{ duration: 0.2 }}
|
|
40
40
|
style={{ width: '420px', border: 'none', maxWidth: '90vw', maxHeight: '100vh' }}
|
|
41
|
+
UNSTABLE_portalContainer={portalContainer}
|
|
41
42
|
>
|
|
42
43
|
<MotionModalOverlay
|
|
43
44
|
data-id="modal-mask"
|
|
@@ -46,6 +47,7 @@ export const Modal = ({ isModalOpen, setIsModalOpen, children }: ModalProps) =>
|
|
|
46
47
|
animate={opaque}
|
|
47
48
|
exit={transparent}
|
|
48
49
|
transition={{ duration: 0.2 }}
|
|
50
|
+
UNSTABLE_portalContainer={portalContainer}
|
|
49
51
|
/>
|
|
50
52
|
<Dialog role="dialog" aria-labelledby={modalId}>
|
|
51
53
|
<div style={{ position: 'absolute', right: '10px', top: '10px' }}>
|