@conboai/app.db.query 0.3.34 → 0.3.40

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.
@@ -84803,24 +84803,25 @@ class na {
84803
84803
  });
84804
84804
  }
84805
84805
  }
84806
- const RD = "https://plt.gateway.conbo.ai";
84807
- Hu.BASE = `${RD}/api/classification`;
84808
- Ms.BASE = `${RD}/api/action`;
84809
- function Mme({ siteId: t, UserProfile: e, onHomeClick: r }) {
84810
- const [n, o] = $e(!0), [i, s] = Zn((l) => [
84811
- l.setSiteFeeds,
84812
- l.setSiteInfo
84806
+ function RD(t = "") {
84807
+ Hu.BASE = `${t}/api/classification`, Ms.BASE = `${t}/api/action`;
84808
+ }
84809
+ function Mme({ siteId: t, UserProfile: e, onHomeClick: r, baseUrl: n }) {
84810
+ RD(n);
84811
+ const [o, i] = $e(!0), [s, l] = Zn((c) => [
84812
+ c.setSiteFeeds,
84813
+ c.setSiteInfo
84813
84814
  ]);
84814
84815
  return Pe(() => {
84815
84816
  (async () => {
84816
84817
  try {
84817
- const c = await SD(t), u = await TD(t);
84818
- i(c), s(u);
84819
- } catch (c) {
84820
- console.log(c);
84818
+ const u = await SD(t), d = await TD(t);
84819
+ s(u), l(d);
84820
+ } catch (u) {
84821
+ console.log(u);
84821
84822
  }
84822
84823
  })();
84823
- }, [i, s, t]), /* @__PURE__ */ Ke.jsxs(ur, { display: "flex", flexDirection: "column", sx: { height: "100vh" }, children: [
84824
+ }, [s, l, t]), /* @__PURE__ */ Ke.jsxs(ur, { display: "flex", flexDirection: "column", sx: { height: "100vh" }, children: [
84824
84825
  /* @__PURE__ */ Ke.jsx(wD, { UserProfile: e, onHomeClick: r }),
84825
84826
  /* @__PURE__ */ Ke.jsxs(po, { container: !0, sx: { flexGrow: 1 }, height: "calc(100% - 60px)", children: [
84826
84827
  /* @__PURE__ */ Ke.jsx(
@@ -84829,13 +84830,13 @@ function Mme({ siteId: t, UserProfile: e, onHomeClick: r }) {
84829
84830
  item: !0,
84830
84831
  flexGrow: 1,
84831
84832
  height: "100%",
84832
- maxWidth: n ? "25%" : "48px",
84833
- md: n ? 2 : 0.3,
84833
+ maxWidth: o ? "25%" : "48px",
84834
+ md: o ? 2 : 0.3,
84834
84835
  children: /* @__PURE__ */ Ke.jsx(
84835
84836
  Wfe,
84836
84837
  {
84837
- setPanelShown: o,
84838
- isPanelShown: n
84838
+ setPanelShown: i,
84839
+ isPanelShown: o
84839
84840
  }
84840
84841
  )
84841
84842
  }
@@ -84844,7 +84845,7 @@ function Mme({ siteId: t, UserProfile: e, onHomeClick: r }) {
84844
84845
  po,
84845
84846
  {
84846
84847
  item: !0,
84847
- md: n ? 7 : 8.7,
84848
+ md: o ? 7 : 8.7,
84848
84849
  padding: "36px 20px",
84849
84850
  height: "100%",
84850
84851
  children: /* @__PURE__ */ Ke.jsx(Gfe, {})
@@ -85626,21 +85627,22 @@ function bme() {
85626
85627
  ) })
85627
85628
  ] });
85628
85629
  }
85629
- function Pme({ siteId: t, UserProfile: e, onHomeClick: r }) {
85630
- const [n, o] = $e(!0), [i, s] = Zn((l) => [
85631
- l.setSiteFeeds,
85632
- l.setSiteInfo
85630
+ function Pme({ siteId: t, UserProfile: e, onHomeClick: r, baseUrl: n }) {
85631
+ RD(n);
85632
+ const [o, i] = $e(!0), [s, l] = Zn((c) => [
85633
+ c.setSiteFeeds,
85634
+ c.setSiteInfo
85633
85635
  ]);
85634
85636
  return Pe(() => {
85635
85637
  (async () => {
85636
85638
  try {
85637
- const c = await SD(t), u = await TD(t);
85638
- s(u), i(c);
85639
- } catch (c) {
85640
- console.log(c);
85639
+ const u = await SD(t), d = await TD(t);
85640
+ l(d), s(u);
85641
+ } catch (u) {
85642
+ console.log(u);
85641
85643
  }
85642
85644
  })();
85643
- }, [i, s, t]), /* @__PURE__ */ Ke.jsxs(ur, { display: "flex", flexDirection: "column", sx: { height: "100vh" }, children: [
85645
+ }, [s, l, t]), /* @__PURE__ */ Ke.jsxs(ur, { display: "flex", flexDirection: "column", sx: { height: "100vh" }, children: [
85644
85646
  /* @__PURE__ */ Ke.jsx(wD, { UserProfile: e, onHomeClick: r }),
85645
85647
  /* @__PURE__ */ Ke.jsxs(po, { container: !0, sx: { flexGrow: 1 }, height: "calc(100% - 60px)", children: [
85646
85648
  /* @__PURE__ */ Ke.jsx(
@@ -85649,12 +85651,12 @@ function Pme({ siteId: t, UserProfile: e, onHomeClick: r }) {
85649
85651
  item: !0,
85650
85652
  flexGrow: 1,
85651
85653
  height: "100%",
85652
- maxWidth: n ? "25%" : "48px",
85654
+ maxWidth: o ? "25%" : "48px",
85653
85655
  children: /* @__PURE__ */ Ke.jsx(
85654
85656
  yme,
85655
85657
  {
85656
- setPanelShown: o,
85657
- isPanelShown: n
85658
+ setPanelShown: i,
85659
+ isPanelShown: o
85658
85660
  }
85659
85661
  )
85660
85662
  }
@@ -85663,8 +85665,8 @@ function Pme({ siteId: t, UserProfile: e, onHomeClick: r }) {
85663
85665
  po,
85664
85666
  {
85665
85667
  item: !0,
85666
- xl: n ? 7 : 8.7,
85667
- lg: n ? 6 : 8.616,
85668
+ xl: o ? 7 : 8.7,
85669
+ lg: o ? 6 : 8.616,
85668
85670
  md: 6,
85669
85671
  padding: "36px 20px",
85670
85672
  height: "100%",
@@ -1,4 +1,4 @@
1
1
  import { IApp } from '../../interfaces/App';
2
2
 
3
- declare function Cargo({ siteId, UserProfile, onHomeClick }: IApp): import("react/jsx-runtime").JSX.Element;
3
+ declare function Cargo({ siteId, UserProfile, onHomeClick, baseUrl }: IApp): import("react/jsx-runtime").JSX.Element;
4
4
  export default Cargo;
@@ -1,4 +1,4 @@
1
1
  import { IApp } from '../../interfaces/App';
2
2
 
3
- declare function Classifiers({ siteId, UserProfile, onHomeClick }: IApp): import("react/jsx-runtime").JSX.Element;
3
+ declare function Classifiers({ siteId, UserProfile, onHomeClick, baseUrl }: IApp): import("react/jsx-runtime").JSX.Element;
4
4
  export default Classifiers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/app.db.query",
3
- "version": "0.3.34",
3
+ "version": "0.3.40",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "@emotion/styled": "^11.11.5",
31
31
  "@mui/material": "^5.15.17",
32
32
  "@react-google-maps/api": "^2.19.3",
33
- "ajv": "^8.16.0",
33
+ "ajv": "^8.17.1",
34
34
  "dayjs": "^1.11.11",
35
35
  "react": "^18.2.0",
36
36
  "react-dom": "^18.2.0",