@conboai/app.db.query 0.8.29 → 0.8.30

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.
@@ -128836,7 +128836,8 @@ const Pi = {
128836
128836
  height: "248px",
128837
128837
  borderRadius: "8px",
128838
128838
  border: `5px solid ${e < 0 ? yM(e).borderColor : "none"}`,
128839
- cursor: "pointer"
128839
+ cursor: "pointer",
128840
+ objectFit: "inherit"
128840
128841
  }), GZ = {
128841
128842
  marginTop: "10px"
128842
128843
  }, kx = {
@@ -128880,15 +128881,16 @@ const Pi = {
128880
128881
  captureTime: o,
128881
128882
  delay: i,
128882
128883
  onClick: s,
128883
- fov: a
128884
+ fov: a,
128885
+ isFovShown: c
128884
128886
  }) => {
128885
- const c = () => {
128887
+ const u = () => {
128886
128888
  s && s(r);
128887
128889
  };
128888
128890
  return /* @__PURE__ */ xe.jsxs(nt, { sx: TBe, children: [
128889
- /* @__PURE__ */ xe.jsxs(nt, { sx: kBe, onDoubleClick: c, children: [
128891
+ /* @__PURE__ */ xe.jsxs(nt, { sx: kBe, onDoubleClick: u, children: [
128890
128892
  i <= c6.FIFTEEN_SECONDS && /* @__PURE__ */ xe.jsx(nt, { sx: WZ(i), children: /* @__PURE__ */ xe.jsx(Jt, { children: KK(i) }) }),
128891
- a && Object.keys(a).length ? /* @__PURE__ */ xe.jsx(
128893
+ c ? /* @__PURE__ */ xe.jsx(
128892
128894
  AP,
128893
128895
  {
128894
128896
  mode: Or.View,
@@ -129147,20 +129149,32 @@ const Pi = {
129147
129149
  ), FBe = () => /* @__PURE__ */ xe.jsxs(nt, { sx: RBe, children: [
129148
129150
  /* @__PURE__ */ xe.jsx(jBe, {}),
129149
129151
  /* @__PURE__ */ xe.jsx(Jt, { sx: MBe, children: "You don't have any cameras connected." })
129150
- ] }), $Be = ({ imagesData: e, loading: t = !1 }) => {
129151
- const [n, r] = je(!1), [o, i] = je(null), s = e == null ? void 0 : e.find(
129152
- (u) => u.feedId === o
129153
- ), a = () => r(!1), c = (u) => {
129154
- r(!0), i(u);
129152
+ ] }), $Be = ({
129153
+ imagesData: e,
129154
+ loading: t = !1,
129155
+ isFovShown: n = !1
129156
+ }) => {
129157
+ const [r, o] = je(!1), [i, s] = je(null), a = e == null ? void 0 : e.find(
129158
+ (h) => h.feedId === i
129159
+ ), c = () => o(!1), u = (h) => {
129160
+ o(!0), s(h);
129155
129161
  };
129156
129162
  return t ? /* @__PURE__ */ xe.jsx(nt, { sx: EBe, children: /* @__PURE__ */ xe.jsx(Yh, {}) }) : /* @__PURE__ */ xe.jsxs(qV, { sx: SBe, children: [
129157
- e.length ? e == null ? void 0 : e.map((u) => /* @__PURE__ */ Kc(IBe, { ...u, key: u.feedId, onClick: c })) : /* @__PURE__ */ xe.jsx(FBe, {}),
129163
+ e.length ? e == null ? void 0 : e.map((h) => /* @__PURE__ */ Kc(
129164
+ IBe,
129165
+ {
129166
+ ...h,
129167
+ key: h.feedId,
129168
+ onClick: u,
129169
+ isFovShown: n
129170
+ }
129171
+ )) : /* @__PURE__ */ xe.jsx(FBe, {}),
129158
129172
  /* @__PURE__ */ xe.jsx(
129159
129173
  NBe,
129160
129174
  {
129161
- open: n,
129162
- onClose: a,
129163
- imageData: s
129175
+ open: r,
129176
+ onClose: c,
129177
+ imageData: a
129164
129178
  }
129165
129179
  )
129166
129180
  ] });
@@ -129268,25 +129282,24 @@ const Pi = {
129268
129282
  latestSnapshots: e,
129269
129283
  fovInfos: t,
129270
129284
  baseUrl: n,
129271
- feeds: r,
129272
- isFovShown: o = !1
129273
- }) => (e == null ? void 0 : e.map((i) => {
129274
- const s = N_e(i.captureTime), a = GBe(n, i.id), c = r.find(
129275
- (p) => p.assigned_feed_id === i.assignedFeedId
129276
- ), u = t.find(
129277
- (p) => (p == null ? void 0 : p.assignedFeedId) === i.assignedFeedId
129278
- ), h = lZ(
129279
- u == null ? void 0 : u.pixel_points.coordinates,
129285
+ feeds: r
129286
+ }) => (e == null ? void 0 : e.map((o) => {
129287
+ const i = N_e(o.captureTime), s = GBe(n, o.id), a = r.find(
129288
+ (h) => h.assigned_feed_id === o.assignedFeedId
129289
+ ), c = t.find(
129290
+ (h) => (h == null ? void 0 : h.assignedFeedId) === o.assignedFeedId
129291
+ ), u = lZ(
129292
+ c == null ? void 0 : c.pixel_points.coordinates,
129280
129293
  { strokeWidth: 1, stroke: "#FFFFFF" }
129281
129294
  );
129282
129295
  return {
129283
- url: a,
129284
- displayName: c == null ? void 0 : c.feed_display_name,
129285
- name: c == null ? void 0 : c.feed_name,
129286
- feedId: c == null ? void 0 : c.assigned_feed_id,
129287
- captureTime: i.captureTime,
129288
- delay: s,
129289
- fov: o ? h : {}
129296
+ url: s,
129297
+ displayName: a == null ? void 0 : a.feed_display_name,
129298
+ name: a == null ? void 0 : a.feed_name,
129299
+ feedId: a == null ? void 0 : a.assigned_feed_id,
129300
+ captureTime: o.captureTime,
129301
+ delay: i,
129302
+ fov: u
129290
129303
  };
129291
129304
  })) || [], KBe = (e) => {
129292
129305
  const { getLatestSnapshots: t } = qD(), { getFovInfos: n } = hl(), [r] = Vt((o) => [o.newFeeds]);
@@ -129306,7 +129319,7 @@ const Pi = {
129306
129319
  onHomeClick: n
129307
129320
  }) => {
129308
129321
  const [r, o] = je(!1), [i, s] = je(!1), { latestSnapshots: a, loading: c, clearLatestSnapshots: u } = qD(), { fovInfos: h, clearFovInfos: p } = hl(), [m, g] = Vt((x) => [
129309
- x.newSiteInfo,
129322
+ x.deploymentConfiguration,
129310
129323
  x.newFeeds
129311
129324
  ]);
129312
129325
  k0(t), Hg(e), KBe(i);
@@ -129318,15 +129331,20 @@ const Pi = {
129318
129331
  latestSnapshots: a,
129319
129332
  fovInfos: h,
129320
129333
  baseUrl: t,
129321
- feeds: g,
129322
- isFovShown: r
129334
+ feeds: g
129323
129335
  }),
129324
- [t, h, r, a, g]
129336
+ [t, h, a, g]
129325
129337
  ), v = (x) => o(x.target.checked), T = () => {
129326
129338
  u(), p(), s(!i);
129327
129339
  };
129328
129340
  return /* @__PURE__ */ xe.jsxs(nt, { children: [
129329
- /* @__PURE__ */ xe.jsx(wBe, { onHomeClick: n, deploymentName: m == null ? void 0 : m.name }),
129341
+ /* @__PURE__ */ xe.jsx(
129342
+ wBe,
129343
+ {
129344
+ onHomeClick: n,
129345
+ deploymentName: m == null ? void 0 : m.name
129346
+ }
129347
+ ),
129330
129348
  /* @__PURE__ */ xe.jsxs(nt, { sx: WBe, children: [
129331
129349
  /* @__PURE__ */ xe.jsx(
129332
129350
  UBe,
@@ -129339,11 +129357,18 @@ const Pi = {
129339
129357
  icon: "refresh"
129340
129358
  }
129341
129359
  ),
129342
- /* @__PURE__ */ xe.jsx($Be, { imagesData: y, loading: c })
129360
+ /* @__PURE__ */ xe.jsx(
129361
+ $Be,
129362
+ {
129363
+ imagesData: y,
129364
+ loading: c,
129365
+ isFovShown: r
129366
+ }
129367
+ )
129343
129368
  ] })
129344
129369
  ] });
129345
129370
  }, FVe = ({
129346
- deploymentId: e,
129371
+ siteId: e,
129347
129372
  onHomeClick: t,
129348
129373
  baseUrl: n
129349
129374
  }) => {
@@ -1,7 +1,7 @@
1
1
  import { FC } from 'react';
2
2
 
3
3
  type FeedStreamsProps = {
4
- deploymentId: string;
4
+ siteId: string;
5
5
  baseUrl?: string;
6
6
  onHomeClick?: () => void;
7
7
  };
@@ -3,6 +3,7 @@ import { ImageItemType } from './ImageItem';
3
3
  type ImageGridProps = {
4
4
  imagesData: ImageItemType[];
5
5
  loading?: boolean;
6
+ isFovShown?: boolean;
6
7
  };
7
- declare const ImageGrid: ({ imagesData, loading }: ImageGridProps) => import("react/jsx-runtime").JSX.Element;
8
+ declare const ImageGrid: ({ imagesData, loading, isFovShown }: ImageGridProps) => import("react/jsx-runtime").JSX.Element;
8
9
  export default ImageGrid;
@@ -9,6 +9,7 @@ export type ImageItemType = {
9
9
  delay: number;
10
10
  onClick?: (value: number | string | null) => void;
11
11
  fov?: Shape[];
12
+ isFovShown?: boolean;
12
13
  };
13
- declare const ImageItem: ({ url, displayName, name, feedId, captureTime, delay, onClick, fov }: ImageItemType) => import("react/jsx-runtime").JSX.Element;
14
+ declare const ImageItem: ({ url, displayName, name, feedId, captureTime, delay, onClick, fov, isFovShown }: ImageItemType) => import("react/jsx-runtime").JSX.Element;
14
15
  export default ImageItem;
@@ -18,5 +18,4 @@ export type FeedStreamsData = {
18
18
  fovInfos: FovTypeDto[];
19
19
  baseUrl?: string;
20
20
  feeds: FeedType[];
21
- isFovShown?: boolean;
22
21
  };
@@ -1,5 +1,20 @@
1
1
  import { FeedStreamsData } from './types';
2
- import { ImageItemType } from './components/ImageGrid/ImageItem';
3
2
 
4
3
  export declare const generatePanelResult: (amount: number) => string;
5
- export declare const generateFeedStreamsData: ({ latestSnapshots, fovInfos, baseUrl, feeds, isFovShown }: FeedStreamsData) => ImageItemType[];
4
+ export declare const generateFeedStreamsData: ({ latestSnapshots, fovInfos, baseUrl, feeds }: FeedStreamsData) => {
5
+ url: string;
6
+ displayName: string | undefined;
7
+ name: string | undefined;
8
+ feedId: number | undefined;
9
+ captureTime: string;
10
+ delay: number;
11
+ fov: {
12
+ id: string;
13
+ type: import('@conboai/storybook.components').ShapeType;
14
+ points: {
15
+ x: number;
16
+ y: number;
17
+ }[];
18
+ styles: any;
19
+ } | null;
20
+ }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/app.db.query",
3
- "version": "0.8.29",
3
+ "version": "0.8.30",
4
4
  "type": "module",
5
5
  "main": "dist/app.db.query.js",
6
6
  "types": "dist/build/index.d.ts",