@tenancy.nz/chat-ui 0.1.3 → 0.1.4
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/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -669,7 +669,7 @@ function Sh(d) {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
function oh(d = {}) {
|
|
672
|
-
const l = d.apiBase || (typeof window < "u" ? "https://fastify.tpsportal.co.nz" : "/api"), U = d.tokenRefreshThresholdSeconds ?? 60, t = async () => {
|
|
672
|
+
const l = d.apiBase || (typeof window < "u" ? "https://fastify.tpsportal.co.nz/api" : "/api"), U = d.tokenRefreshThresholdSeconds ?? 60, t = async () => {
|
|
673
673
|
try {
|
|
674
674
|
const F = Math.floor(Date.now() / 1e3);
|
|
675
675
|
if (iF != null && iF.token && (!iF.exp || iF.exp - U > F))
|
|
@@ -24610,7 +24610,7 @@ function Xo({
|
|
|
24610
24610
|
] }) });
|
|
24611
24611
|
}
|
|
24612
24612
|
function yo({ user: d, generateToken: l, clientId: U }) {
|
|
24613
|
-
const t = "https://fastify.tpsportal.co.nz", Z = "https://fastify.tpsportal.co.nz", [F, n] = SU([]), [c, s] = SU(""), [V, i] = SU(!1), [a, W] = SU(null), [R, N] = SU(null), [b, J] = SU([]), [h, G] = SU({ open: !1 }), [S, B] = SU(null), Y = zU(null), u = zU(!0), y = zU(0), [D, r] = SU(!0), [p, z] = SU(!1), [L, x] = SU(50), [g, H] = SU(!1), [E, j] = SU(!1), el = zU(null), Yl = zU(null), o = zU(null), { toasts: dl, pushToast: Ql } = yh(), T = Gi(() => oh({ apiBase: t, generateToken: l, clientId: U }), [t, l, U]), kl = rd(({ numPages: v }) => B(v), []), Hl = rd(() => {
|
|
24613
|
+
const t = "https://fastify.tpsportal.co.nz/api", Z = "https://fastify.tpsportal.co.nz/docs", [F, n] = SU([]), [c, s] = SU(""), [V, i] = SU(!1), [a, W] = SU(null), [R, N] = SU(null), [b, J] = SU([]), [h, G] = SU({ open: !1 }), [S, B] = SU(null), Y = zU(null), u = zU(!0), y = zU(0), [D, r] = SU(!0), [p, z] = SU(!1), [L, x] = SU(50), [g, H] = SU(!1), [E, j] = SU(!1), el = zU(null), Yl = zU(null), o = zU(null), { toasts: dl, pushToast: Ql } = yh(), T = Gi(() => oh({ apiBase: t, generateToken: l, clientId: U }), [t, l, U]), kl = rd(({ numPages: v }) => B(v), []), Hl = rd(() => {
|
|
24614
24614
|
const v = Y.current;
|
|
24615
24615
|
v && requestAnimationFrame(() => {
|
|
24616
24616
|
try {
|