@camstack/addon-benchmark 1.2.125 → 1.2.126

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/_stub.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./virtualExposes-erbhyesj.mjs";
2
- import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-DAfIANAE.mjs";
2
+ import { a as e, i as t, o as n, r } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-C5SJQHUy.mjs";
3
3
  import { _ as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, p as h, r as g, t as _, u as v, v as y, x as b, y as x } from "./_virtual_mf___mfe_internal__addon_benchmark_page__loadShare__react__loadShare__.js-GeuxDuzQ.mjs";
4
4
  import { a as S, c as C, i as w, n as T, o as E, r as D, s as O } from "./responsive-qF4Yi9MT.mjs";
5
5
  import { c as k, d as A, f as j, l as M, s as N, u as P } from "./scene-monitor-copy-vMmSDhZl.mjs";
@@ -5413,7 +5413,8 @@ function rs(e) {
5413
5413
  profile: t,
5414
5414
  offered: n,
5415
5415
  missingSources: i,
5416
- canvas: typeof e.canvas == "string" ? e.canvas : ""
5416
+ canvas: typeof e.canvas == "string" ? e.canvas : "",
5417
+ published: typeof e.published == "boolean" ? e.published : n
5417
5418
  };
5418
5419
  }
5419
5420
  function is(e) {
@@ -5533,17 +5534,18 @@ function vs({ deviceId: e }) {
5533
5534
  });
5534
5535
  }
5535
5536
  }, [y, b]);
5536
- let x = o(async () => {
5537
- let e = y?.cameraGridLayout;
5538
- if (!(a === null || !e)) {
5537
+ let x = o(async (e) => {
5538
+ let t = y?.cameraGridLayout;
5539
+ if (!(a === null || !t)) {
5539
5540
  u(!0), f(null);
5540
5541
  try {
5541
- let t = is(await e.saveLayout({
5542
+ let n = is(await t.saveLayout({
5542
5543
  name: a.name,
5543
5544
  fps: a.fps,
5544
- cells: a.cells.map((e) => ({ ...e }))
5545
+ cells: a.cells.map((e) => ({ ...e })),
5546
+ ...e?.publishedProfiles === void 0 ? {} : { publishedProfiles: [...e.publishedProfiles] }
5545
5547
  }));
5546
- t !== null && t !== "unreadable" && (i(t), s(t));
5548
+ n !== null && n !== "unreadable" && (i(n), s(n));
5547
5549
  } catch (e) {
5548
5550
  f(e instanceof Error ? e.message : String(e));
5549
5551
  } finally {
@@ -5708,7 +5710,12 @@ function vs({ deviceId: e }) {
5708
5710
  }),
5709
5711
  /* @__PURE__ */ V(ys, {
5710
5712
  offers: r.profiles,
5711
- cameras: n
5713
+ cameras: n,
5714
+ onToggle: (e) => {
5715
+ if (a === null) return;
5716
+ let t = r.profiles.filter((e) => e.published).map((e) => e.profile);
5717
+ x({ publishedProfiles: t.includes(e) ? t.filter((t) => t !== e) : [...t, e] });
5718
+ }
5712
5719
  }),
5713
5720
  a.cells[p] !== void 0 && /* @__PURE__ */ V(xs, {
5714
5721
  cell: a.cells[p],
@@ -5728,8 +5735,8 @@ function vs({ deviceId: e }) {
5728
5735
  })
5729
5736
  });
5730
5737
  }
5731
- function ys({ offers: e, cameras: t }) {
5732
- let n = (e) => t.find((t) => t.id === e)?.name ?? `#${String(e)}`;
5738
+ function ys({ offers: e, cameras: t, onToggle: n }) {
5739
+ let r = (e) => t.find((t) => t.id === e)?.name ?? `#${String(e)}`;
5733
5740
  return /* @__PURE__ */ H("div", {
5734
5741
  className: "flex flex-col gap-1 rounded border border-border p-2 text-[10.5px]",
5735
5742
  children: [/* @__PURE__ */ V("span", {
@@ -5737,20 +5744,33 @@ function ys({ offers: e, cameras: t }) {
5737
5744
  children: "Published profiles"
5738
5745
  }), e.map((e) => /* @__PURE__ */ H("div", {
5739
5746
  className: "flex items-baseline gap-2",
5740
- children: [/* @__PURE__ */ V("span", {
5741
- className: "w-10 uppercase",
5742
- children: e.profile
5743
- }), e.offered ? /* @__PURE__ */ H("span", {
5744
- className: "text-foreground-subtle",
5745
- children: [
5746
- e.canvas,
5747
- " — composed from every source’s ",
5748
- e.profile
5749
- ]
5750
- }) : /* @__PURE__ */ V("span", {
5751
- className: "text-danger",
5752
- children: e.missingSources.length === 0 ? "not offered — this grid has no cells yet" : `not offered — no ${e.profile} on ${e.missingSources.map(n).join(", ")}`
5753
- })]
5747
+ children: [
5748
+ /* @__PURE__ */ V("input", {
5749
+ type: "checkbox",
5750
+ checked: e.published,
5751
+ disabled: !e.offered,
5752
+ "aria-label": `publish ${e.profile}`,
5753
+ onChange: () => {
5754
+ n(e.profile);
5755
+ }
5756
+ }),
5757
+ /* @__PURE__ */ V("span", {
5758
+ className: "w-10 uppercase",
5759
+ children: e.profile
5760
+ }),
5761
+ e.offered ? /* @__PURE__ */ H("span", {
5762
+ className: "text-foreground-subtle",
5763
+ children: [
5764
+ e.canvas,
5765
+ " —",
5766
+ " ",
5767
+ e.published ? `composed from every source’s ${e.profile}` : "serviceable, not published"
5768
+ ]
5769
+ }) : /* @__PURE__ */ V("span", {
5770
+ className: "text-danger",
5771
+ children: e.missingSources.length === 0 ? "not offered — this grid has no cells yet" : `not offered — no ${e.profile} on ${e.missingSources.map(r).join(", ")}`
5772
+ })
5773
+ ]
5754
5774
  }, e.profile))]
5755
5775
  });
5756
5776
  }
@@ -1,4 +1,4 @@
1
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-DAfIANAE.mjs";
1
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-C5SJQHUy.mjs";
2
2
  //#region \0virtual:mf-localSharedImportMap:__mfe_internal__addon_benchmark_page
3
3
  var e = {
4
4
  "@camstack/sdk": {
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.222",
21
+ version: "1.2.223",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_benchmark_page",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.180",
36
+ version: "1.2.181",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_benchmark_page",
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.222",
39
+ version: "1.2.223",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.180",
84
+ version: "1.2.181",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-DAfIANAE.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_benchmark_page__remoteEntry_js-C5SJQHUy.mjs";
2
2
  export { t as get, e as init };
@@ -2762,7 +2762,7 @@ async function or(e) {
2762
2762
  }
2763
2763
  }
2764
2764
  async function sr() {
2765
- return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-DOdAPgpU.mjs")).catch((e) => {
2765
+ return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-X7ZuDBho.mjs")).catch((e) => {
2766
2766
  throw ir = void 0, e;
2767
2767
  }), ir;
2768
2768
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-benchmark",
3
- "version": "1.2.125",
3
+ "version": "1.2.126",
4
4
  "description": "Detection addon benchmarking with reference images, accuracy metrics, and distributed execution",
5
5
  "keywords": [
6
6
  "camstack",