@chaibuilder/pages 0.1.0-beta.78 → 0.1.0-beta.79
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/{B4MFY5CR-DWK4CsBV.js → B4MFY5CR-DqsQzvT-.js} +1 -1
- package/dist/{B4MFY5CR-Awg3Nn10.cjs → B4MFY5CR-NIp6q0-B.cjs} +1 -1
- package/dist/{ChaiBuilderPages-B3AhYInP.cjs → ChaiBuilderPages-CVnHhNgy.cjs} +7 -7
- package/dist/{ChaiBuilderPages-BDZpSUPy.js → ChaiBuilderPages-DL3Z2NEo.js} +28 -33
- package/dist/{HO4MOOFI-7uxLVLNX.cjs → HO4MOOFI-D9npj-Vy.cjs} +1 -1
- package/dist/{HO4MOOFI-jbSZQIVM.js → HO4MOOFI-kzm-Pwyq.js} +2 -2
- package/dist/{HUY7CZI3-CUpsmI2b.cjs → HUY7CZI3-CY_elz-x.cjs} +1 -1
- package/dist/{HUY7CZI3-Ce8XsgHI.js → HUY7CZI3-CYc-zqbF.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -2639,7 +2639,7 @@ var sc = (e, t = !1) => {
|
|
|
2639
2639
|
const t = Ar(() => {
|
|
2640
2640
|
const n = this, [s] = O(this, xt), [a] = O(this, bt), [i] = O(this, Et), [o] = O(this, St), [l] = O(this, pt);
|
|
2641
2641
|
let c;
|
|
2642
|
-
return O(this, wt) ? c = O(this, wt) : (c = Tr(() => import("./HO4MOOFI-
|
|
2642
|
+
return O(this, wt) ? c = O(this, wt) : (c = Tr(() => import("./HO4MOOFI-kzm-Pwyq.js")), Y(this, wt, c)), Vr(O(this, rn), O(this, vt)), Sr(c, wr({
|
|
2643
2643
|
get queryFlavor() {
|
|
2644
2644
|
return O(n, nn);
|
|
2645
2645
|
},
|
|
@@ -2733,7 +2733,7 @@ var sc = (e, t = !1) => {
|
|
|
2733
2733
|
const t = Ar(() => {
|
|
2734
2734
|
const n = this, [s] = O(this, At), [a] = O(this, Nt), [i] = O(this, Ct), [o] = O(this, _t), [l] = O(this, Tt), [c] = O(this, Pt);
|
|
2735
2735
|
let f;
|
|
2736
|
-
return O(this, kt) ? f = O(this, kt) : (f = Tr(() => import("./HUY7CZI3-
|
|
2736
|
+
return O(this, kt) ? f = O(this, kt) : (f = Tr(() => import("./HUY7CZI3-CYc-zqbF.js")), Y(this, kt, f)), Vr(O(this, un), O(this, jt)), Sr(f, wr({
|
|
2737
2737
|
get queryFlavor() {
|
|
2738
2738
|
return O(n, ln);
|
|
2739
2739
|
},
|
|
@@ -2888,21 +2888,14 @@ const Fo = Ja({}), Hr = () => Za(Fo), at = (e, t) => {
|
|
|
2888
2888
|
return { setAiContext: it((s) => {
|
|
2889
2889
|
e.setQueryData([U.AI_CONTEXT], s);
|
|
2890
2890
|
}, []), aiContext: t };
|
|
2891
|
-
}, Ye = async (e, t, n = {}) => {
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
}), a = await s.json();
|
|
2900
|
-
if (s.status === 401)
|
|
2901
|
-
throw new Error("UNAUTHORIZED");
|
|
2902
|
-
if (a != null && a.error || s.status === 400 || !s.ok)
|
|
2903
|
-
throw new Error((a == null ? void 0 : a.error) || "Something went wrong.");
|
|
2904
|
-
return a;
|
|
2905
|
-
}, $o = () => {
|
|
2891
|
+
}, Ye = async (e, t, n = {}) => await fetch(e, {
|
|
2892
|
+
method: "POST",
|
|
2893
|
+
headers: {
|
|
2894
|
+
"Content-Type": "application/json",
|
|
2895
|
+
...n
|
|
2896
|
+
},
|
|
2897
|
+
body: JSON.stringify(t)
|
|
2898
|
+
}), $o = () => {
|
|
2906
2899
|
const e = ge(), { aiContext: t } = ws();
|
|
2907
2900
|
return it(
|
|
2908
2901
|
async (n, s, a, i) => Ye(e, {
|
|
@@ -2919,7 +2912,7 @@ const Fo = Ja({}), Hr = () => Za(Fo), at = (e, t) => {
|
|
|
2919
2912
|
try {
|
|
2920
2913
|
const o = await Ye(s, a, {
|
|
2921
2914
|
...i,
|
|
2922
|
-
Authorization: n
|
|
2915
|
+
Authorization: `Bearer ${n}`
|
|
2923
2916
|
});
|
|
2924
2917
|
if (o.status === 401)
|
|
2925
2918
|
throw t(), new Error("Session expired");
|
|
@@ -5404,7 +5397,9 @@ const pl = ({
|
|
|
5404
5397
|
]
|
|
5405
5398
|
}
|
|
5406
5399
|
), vl = ({ close: e }) => {
|
|
5407
|
-
const [, t] = X([]), [n, s] = X(""), [a, i] = X(null), [o, l] = X(null), [c, f] = X(null), { data: y, isFetching: g } = Vn()
|
|
5400
|
+
const [, t] = X([]), [n, s] = X(""), [a, i] = X(null), [o, l] = X(null), [c, f] = X(null), { data: y, isFetching: g } = Vn();
|
|
5401
|
+
console.log("data", y);
|
|
5402
|
+
const [v, S] = ft(), T = v.get("page"), j = it(
|
|
5408
5403
|
(m) => {
|
|
5409
5404
|
window.history.pushState({}, "", `?page=${m}`), S(new URLSearchParams({ page: m })), window.dispatchEvent(new PopStateEvent("popstate")), e();
|
|
5410
5405
|
},
|
|
@@ -5801,20 +5796,20 @@ const wl = (e) => {
|
|
|
5801
5796
|
}
|
|
5802
5797
|
}), lc = (e) => {
|
|
5803
5798
|
const [, t] = Hr(), [n, s] = X(!1);
|
|
5804
|
-
return Ve(() =>
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
}, [e, t]), n ? /* @__PURE__ */ r.jsxs(ga, { client: Tl, children: [
|
|
5799
|
+
return Ve(() => (t(
|
|
5800
|
+
rr(e, [
|
|
5801
|
+
"apiUrl",
|
|
5802
|
+
"getPreviewUrl",
|
|
5803
|
+
"logo",
|
|
5804
|
+
"settingComponent",
|
|
5805
|
+
"user",
|
|
5806
|
+
"onSessionExpired"
|
|
5807
|
+
])
|
|
5808
|
+
), setTimeout(() => {
|
|
5809
|
+
s(!0);
|
|
5810
|
+
}, 200), () => {
|
|
5811
|
+
s(!1), t({});
|
|
5812
|
+
}), [e, t]), n ? /* @__PURE__ */ r.jsxs(ga, { client: Tl, children: [
|
|
5818
5813
|
/* @__PURE__ */ r.jsx(wl, { ...e }),
|
|
5819
5814
|
/* @__PURE__ */ r.jsx(Bo, {})
|
|
5820
5815
|
] }) : /* @__PURE__ */ r.jsx("div", {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B4MFY5CR-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B4MFY5CR-NIp6q0-B.cjs"),t=require("./ChaiBuilderPages-CVnHhNgy.cjs");var s=c=>{const[r,o]=e.createLocalStorage({prefix:"TanstackQueryDevtools"}),l=t.getPreferredColorScheme(),a=t.createMemo(()=>{const n=r.theme_preference||e.THEME_PREFERENCE;return n!=="system"?n:l()});return t.createComponent(e.QueryDevtoolsContext.Provider,{value:c,get children(){return t.createComponent(e.PiPProvider,{localStore:r,setLocalStore:o,get children(){return t.createComponent(e.ThemeContext.Provider,{value:a,get children(){return t.createComponent(e.Devtools,{localStore:r,setLocalStore:o})}})}})}})},u=s;exports.default=u;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./B4MFY5CR-
|
|
2
|
-
import { g as d, c as f, a as e } from "./ChaiBuilderPages-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./B4MFY5CR-DqsQzvT-.js";
|
|
2
|
+
import { g as d, c as f, a as e } from "./ChaiBuilderPages-DL3Z2NEo.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B4MFY5CR-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B4MFY5CR-NIp6q0-B.cjs"),t=require("./ChaiBuilderPages-CVnHhNgy.cjs");var u=o=>{const[r,n]=e.createLocalStorage({prefix:"TanstackQueryDevtools"}),c=t.getPreferredColorScheme(),a=t.createMemo(()=>{const l=r.theme_preference||e.THEME_PREFERENCE;return l!=="system"?l:c()});return t.createComponent(e.QueryDevtoolsContext.Provider,{value:o,get children(){return t.createComponent(e.PiPProvider,{disabled:!0,localStore:r,setLocalStore:n,get children(){return t.createComponent(e.ThemeContext.Provider,{value:a,get children(){return t.createComponent(e.ParentPanel,{get children(){return t.createComponent(e.ContentView,{localStore:r,setLocalStore:n,get onClose(){return o.onClose},showPanelViewOnly:!0})}})}})}})}})},i=u;exports.default=i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./B4MFY5CR-
|
|
2
|
-
import { g as v, c as C, a as e } from "./ChaiBuilderPages-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./B4MFY5CR-DqsQzvT-.js";
|
|
2
|
+
import { g as v, c as C, a as e } from "./ChaiBuilderPages-DL3Z2NEo.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./ChaiBuilderPages-
|
|
1
|
+
"use strict";const e=require("./ChaiBuilderPages-CVnHhNgy.cjs");require("@chaibuilder/sdk/web-blocks");require("@chaibuilder/sdk");require("@tanstack/react-query");require("react");require("lodash-es");require("lucide-react");module.exports=e.ChaiBuilderForge;
|
package/dist/index.js
CHANGED