@conboai/app.db.query 0.4.54 → 0.4.55

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.
@@ -115627,28 +115627,37 @@ const GT = () => ({
115627
115627
  },
115628
115628
  getDetectionsInfo: async ({ conboKey: t }) => {
115629
115629
  e({ isDetectionFailed: !1 });
115630
+ const n = Sn.getState().selectedTabId;
115630
115631
  try {
115631
- const n = await s4.detectionsControllerGetDetectionsInfo(
115632
+ const r = await s4.detectionsControllerGetDetectionsInfo(
115632
115633
  t
115633
- ), r = Sn.getState().selectedTabId;
115634
- n.count === 0 ? e({
115634
+ );
115635
+ r.count === 0 ? e((o) => ({
115636
+ frameDetailsData: {
115637
+ ...o.frameDetailsData,
115638
+ [n]: {}
115639
+ },
115635
115640
  isDetectionFailed: !0
115636
- }) : e((o) => ({
115641
+ })) : e((o) => ({
115637
115642
  conboKeySearchData: {
115638
115643
  ...o.conboKeySearchData,
115639
- [r]: n
115644
+ [n]: r
115640
115645
  },
115641
115646
  isDetectionFailed: !1
115642
115647
  }));
115643
- } catch (n) {
115644
- return console.log(n), e({
115648
+ } catch (r) {
115649
+ return console.log(r), e((o) => ({
115645
115650
  error: "Something went wrong",
115646
115651
  conboKeySearchData: {},
115647
115652
  data: [],
115648
115653
  frameDetails: [],
115649
115654
  trailDetails: [],
115655
+ frameDetailsData: {
115656
+ ...o.frameDetailsData,
115657
+ [n]: {}
115658
+ },
115650
115659
  isDetectionFailed: !0
115651
- }), {
115660
+ })), {
115652
115661
  sites: [],
115653
115662
  totalCount: 0
115654
115663
  };
@@ -120276,7 +120285,7 @@ function mY({ baseUrl: e = "" }) {
120276
120285
  ), gt.add(ze);
120277
120286
  }), ie.current.set(d, gt), Z((ze) => ze + 1));
120278
120287
  }, [ne, lF.isEqual, Se, d]), Ae(() => {
120279
- if (ae.length > 0) {
120288
+ if (ae.length) {
120280
120289
  const Ht = [...Se()].filter(
120281
120290
  (ze) => ae.some((Ye) => Ye.id === ze.id)
120282
120291
  ), Te = Ht == null ? void 0 : Ht.filter(
@@ -120289,15 +120298,17 @@ function mY({ baseUrl: e = "" }) {
120289
120298
  ue(ze);
120290
120299
  } else
120291
120300
  ue(Te);
120292
- } else
120293
- ue([]);
120301
+ }
120302
+ (k || !g.length) && ue([]);
120294
120303
  }, [
120295
120304
  ae,
120296
120305
  S,
120297
120306
  p,
120298
120307
  m,
120299
120308
  ee,
120300
- Se
120309
+ Se,
120310
+ k,
120311
+ g.length
120301
120312
  ]);
120302
120313
  const we = Gt(
120303
120314
  (gt, Ht) => {
@@ -120487,7 +120498,7 @@ function mY({ baseUrl: e = "" }) {
120487
120498
  K(!1), _(null), B(null);
120488
120499
  }, _n = Gt(
120489
120500
  (gt) => {
120490
- v && c("shouldFetchCheckboxes", !1), a || n({
120501
+ v && c("shouldFetchCheckboxes", !1), n({
120491
120502
  timeInfo: gt.captureTime,
120492
120503
  assignedFeedId: gt.assignedFeedId,
120493
120504
  orderBy: "id:asc"
@@ -120881,29 +120892,31 @@ const wNe = ({ baseUrl: e = "" }) => {
120881
120892
  clearTrailDetailsData: s,
120882
120893
  isDetectionFailed: a,
120883
120894
  snapshotsData: c
120884
- } = Es(), [d] = Sn((g) => [g.editTabData]), {
120895
+ } = Es(), [d] = Sn((T) => [T.editTabData]), {
120885
120896
  shouldFetchData: h,
120886
120897
  feedId: p,
120887
120898
  id: m,
120888
120899
  currentSliderIndex: v,
120889
- shouldFetchFrameDetails: b
120900
+ shouldFetchFrameDetails: b,
120901
+ isNewTab: g,
120902
+ frameDetails: y
120890
120903
  } = Sn(_o);
120891
120904
  return Ae(() => {
120892
- var g, y, T, C;
120893
- !a && ((g = r[m]) != null && g.start_time) && o({
120894
- startDate: (y = r[m]) == null ? void 0 : y.start_time,
120895
- endDate: (T = r[m]) == null ? void 0 : T.end_time,
120896
- assignedFeedId: (C = r[m]) == null ? void 0 : C.assigned_feed
120905
+ var T, C, S, E;
120906
+ !a && ((T = r[m]) != null && T.start_time) && o({
120907
+ startDate: (C = r[m]) == null ? void 0 : C.start_time,
120908
+ endDate: (S = r[m]) == null ? void 0 : S.end_time,
120909
+ assignedFeedId: (E = r[m]) == null ? void 0 : E.assigned_feed
120897
120910
  });
120898
120911
  }, [r, o, m, a]), Ae(() => {
120899
- var g, y, T, C, S;
120900
- if ((g = c[m]) != null && g.length && !a && ((y = r[m]) != null && y.assigned_feed)) {
120901
- const E = (T = c[m]) != null && T.length ? (C = c[m][v]) == null ? void 0 : C.captureTime : "";
120912
+ var T, C, S, E, x;
120913
+ if ((T = c[m]) != null && T.length && !a && ((C = r[m]) != null && C.assigned_feed) && b) {
120914
+ const k = (S = c[m]) != null && S.length ? (E = c[m][v]) == null ? void 0 : E.captureTime : "";
120902
120915
  n({
120903
- timeInfo: E,
120904
- assignedFeedId: (S = r[m]) == null ? void 0 : S.assigned_feed,
120916
+ timeInfo: k,
120917
+ assignedFeedId: (x = r[m]) == null ? void 0 : x.assigned_feed,
120905
120918
  orderBy: "id:asc"
120906
- }), d("shouldFetchData", !1), d("shouldClearData", !0);
120919
+ }), d("shouldFetchData", !1), d("shouldClearData", !0), d("shouldFetchFrameDetails", !1);
120907
120920
  }
120908
120921
  }, [
120909
120922
  n,
@@ -120918,8 +120931,15 @@ const wNe = ({ baseUrl: e = "" }) => {
120918
120931
  b,
120919
120932
  v
120920
120933
  ]), Ae(() => {
120921
- a && (i(), s(), d("shouldClearData", !1), d("selectedTableItemId", -1));
120922
- }, [i, d, s, a]), gY(), /* @__PURE__ */ Re.jsx(mY, { baseUrl: e });
120934
+ (a && !(y != null && y.length) || g) && (i(), s(), d("shouldClearData", !1), d("selectedTableItemId", -1));
120935
+ }, [
120936
+ g,
120937
+ i,
120938
+ d,
120939
+ s,
120940
+ a,
120941
+ y.length
120942
+ ]), gY(), /* @__PURE__ */ Re.jsx(mY, { baseUrl: e });
120923
120943
  };
120924
120944
  cb.setLicenseKey(
120925
120945
  "57aa5ee5af3421c2b2bbf10d101fee0fTz05NDI1NSxFPTE3NTI1ODIyNDUwMDAsUz1wcm8sTE09c3Vic2NyaXB0aW9uLEtWPTI="
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/app.db.query",
3
- "version": "0.4.54",
3
+ "version": "0.4.55",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",