@camstack/addon-model-studio 1.1.281 → 1.1.282

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-CWSi4E_g.mjs";
2
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BWvh9eD1.mjs";
2
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DpwkzK1-.mjs";
3
3
  import { S as e, _ as t, a as n, b as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, p as f, r as p, t as m, u as h, v as g, y as _ } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react__loadShare__.js-DMBKVIH7.mjs";
4
4
  import { n as v, r as y, t as b } from "./_virtual_mf___mfe_internal__addon_model_studio_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-ds_Ehzaa.mjs";
5
5
  import { n as x, r as S, t as C } from "./ui-text-BqZa5BNK.mjs";
@@ -1,9 +1,9 @@
1
- import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BWvh9eD1.mjs";
1
+ import "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DpwkzK1-.mjs";
2
2
  //#region \0virtual:mf-localSharedImportMap:__mfe_internal__addon_model_studio_page
3
3
  var e = {
4
4
  "@camstack/sdk": {
5
5
  name: "@camstack/sdk",
6
- version: "1.2.144",
6
+ version: "1.2.145",
7
7
  scope: ["default"],
8
8
  loaded: !1,
9
9
  from: "addon_model_studio_page",
@@ -18,7 +18,7 @@ var e = {
18
18
  },
19
19
  "@camstack/types": {
20
20
  name: "@camstack/types",
21
- version: "1.2.394",
21
+ version: "1.2.395",
22
22
  scope: ["default"],
23
23
  loaded: !1,
24
24
  from: "addon_model_studio_page",
@@ -33,7 +33,7 @@ var e = {
33
33
  },
34
34
  "@camstack/ui-library": {
35
35
  name: "@camstack/ui-library",
36
- version: "1.2.311",
36
+ version: "1.2.312",
37
37
  scope: ["default"],
38
38
  loaded: !1,
39
39
  from: "addon_model_studio_page",
@@ -36,7 +36,7 @@ async function r() {
36
36
  }
37
37
  },
38
38
  "@camstack/types": {
39
- version: "1.2.394",
39
+ version: "1.2.395",
40
40
  scope: "default",
41
41
  shareConfig: {
42
42
  singleton: !0,
@@ -45,7 +45,7 @@ async function r() {
45
45
  }
46
46
  },
47
47
  "@camstack/sdk": {
48
- version: "1.2.144",
48
+ version: "1.2.145",
49
49
  scope: "default",
50
50
  shareConfig: {
51
51
  singleton: !0,
@@ -81,7 +81,7 @@ async function r() {
81
81
  }
82
82
  },
83
83
  "@camstack/ui-library": {
84
- version: "1.2.311",
84
+ version: "1.2.312",
85
85
  scope: "default",
86
86
  shareConfig: {
87
87
  singleton: !0,
@@ -5809,7 +5809,7 @@ var ZodIssueCode = {
5809
5809
  var ZodFirstPartyTypeKind;
5810
5810
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5811
5811
  //#endregion
5812
- //#region ../types/dist/sleep-CSuN0thG.mjs
5812
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5813
5813
  /**
5814
5814
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5815
5815
  * window to float samples (D455).
@@ -5926,7 +5926,7 @@ function isKeychainStoredField(field) {
5926
5926
  var SECRET_CLEAR = { $secretClear: true };
5927
5927
  /** The `'***'` token D634 redaction writes for non-admins. */
5928
5928
  var LEGACY_DEVICE_REDACTION = "***";
5929
- function isRecord$5(value) {
5929
+ function isRecord$6(value) {
5930
5930
  return typeof value === "object" && value !== null && !Array.isArray(value);
5931
5931
  }
5932
5932
  function makeSecretMarker(ref) {
@@ -5937,12 +5937,12 @@ function makeSecretMarker(ref) {
5937
5937
  }
5938
5938
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5939
5939
  function isSecretMarker(value) {
5940
- if (!isRecord$5(value)) return false;
5940
+ if (!isRecord$6(value)) return false;
5941
5941
  const ref = value["$secret"];
5942
5942
  return typeof ref === "string" && ref.length > 0;
5943
5943
  }
5944
5944
  function isSecretClear(value) {
5945
- return isRecord$5(value) && value["$secretClear"] === true;
5945
+ return isRecord$6(value) && value["$secretClear"] === true;
5946
5946
  }
5947
5947
  /**
5948
5948
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6552,7 +6552,7 @@ var KeychainWriteRefusedError = class extends Error {
6552
6552
  }
6553
6553
  };
6554
6554
  var KEEP = { kind: "keep" };
6555
- function isRecord$4(value) {
6555
+ function isRecord$5(value) {
6556
6556
  return typeof value === "object" && value !== null && !Array.isArray(value);
6557
6557
  }
6558
6558
  function defaultMintId() {
@@ -6565,7 +6565,7 @@ function collectSecretMarkerRefs(value, out = []) {
6565
6565
  return out;
6566
6566
  }
6567
6567
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6568
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6568
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6569
6569
  return out;
6570
6570
  }
6571
6571
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6620,7 +6620,7 @@ function rowId(row, idKey) {
6620
6620
  return null;
6621
6621
  }
6622
6622
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6623
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6623
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6624
6624
  if (!Array.isArray(incoming)) {
6625
6625
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6626
6626
  return {
@@ -6636,7 +6636,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6636
6636
  const kept = /* @__PURE__ */ new Set();
6637
6637
  const rows = [];
6638
6638
  for (const row of incoming) {
6639
- if (!isRecord$4(row)) {
6639
+ if (!isRecord$5(row)) {
6640
6640
  rows.push(row);
6641
6641
  continue;
6642
6642
  }
@@ -6661,7 +6661,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6661
6661
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6662
6662
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6663
6663
  case "object": {
6664
- if (!isRecord$4(incoming)) {
6664
+ if (!isRecord$5(incoming)) {
6665
6665
  if (incoming === void 0) return KEEP;
6666
6666
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6667
6667
  return {
@@ -6669,7 +6669,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6669
6669
  value: incoming
6670
6670
  };
6671
6671
  }
6672
- const storedObj = isRecord$4(stored) ? stored : {};
6672
+ const storedObj = isRecord$5(stored) ? stored : {};
6673
6673
  return {
6674
6674
  kind: "value",
6675
6675
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6792,7 +6792,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6792
6792
  value: items
6793
6793
  };
6794
6794
  }
6795
- if (isRecord$4(v)) {
6795
+ if (isRecord$5(v)) {
6796
6796
  const out = {};
6797
6797
  for (const [k, child] of Object.entries(v)) {
6798
6798
  const s = substitute(child);
@@ -6824,7 +6824,7 @@ var SecretOverwriteRefusedError = class extends Error {
6824
6824
  this.name = "SecretOverwriteRefusedError";
6825
6825
  }
6826
6826
  };
6827
- function isRecord$3(value) {
6827
+ function isRecord$4(value) {
6828
6828
  return typeof value === "object" && value !== null && !Array.isArray(value);
6829
6829
  }
6830
6830
  function resolvedValue(pass, marker) {
@@ -6853,7 +6853,7 @@ function inArray(pass, incoming, stored) {
6853
6853
  return incoming.map((item, index) => {
6854
6854
  const twin = stored[index];
6855
6855
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6856
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6856
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6857
6857
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6858
6858
  return item;
6859
6859
  });
@@ -6864,7 +6864,7 @@ function inArrayRow(pass, incoming, stored) {
6864
6864
  const twin = stored[key];
6865
6865
  if (isSecretMarker(twin)) {
6866
6866
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6867
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6867
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6868
6868
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6869
6869
  }
6870
6870
  return out;
@@ -6872,7 +6872,7 @@ function inArrayRow(pass, incoming, stored) {
6872
6872
  async function walk(pass, incoming, stored) {
6873
6873
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6874
6874
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6875
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6875
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6876
6876
  const out = { ...incoming };
6877
6877
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6878
6878
  return out;
@@ -6903,7 +6903,7 @@ async function restoreUnchangedSecrets(input) {
6903
6903
  function isJsonEqual(a, b) {
6904
6904
  if (Object.is(a, b)) return true;
6905
6905
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6906
- if (isRecord$3(a) && isRecord$3(b)) {
6906
+ if (isRecord$4(a) && isRecord$4(b)) {
6907
6907
  const keys = Object.keys(a);
6908
6908
  if (keys.length !== Object.keys(b).length) return false;
6909
6909
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6927,7 +6927,7 @@ function markerKeysOf(blob, owner) {
6927
6927
  }
6928
6928
  function nodeFromStored(value, owner) {
6929
6929
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6930
- if (!isRecord$3(value)) return null;
6930
+ if (!isRecord$4(value)) return null;
6931
6931
  const children = /* @__PURE__ */ new Map();
6932
6932
  for (const [key, child] of Object.entries(value)) {
6933
6933
  const node = nodeFromStored(child, owner);
@@ -5783,7 +5783,7 @@ var ZodIssueCode = {
5783
5783
  var ZodFirstPartyTypeKind;
5784
5784
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5785
5785
  //#endregion
5786
- //#region ../types/dist/sleep-CSuN0thG.mjs
5786
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5787
5787
  /**
5788
5788
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5789
5789
  * window to float samples (D455).
@@ -5900,7 +5900,7 @@ function isKeychainStoredField(field) {
5900
5900
  var SECRET_CLEAR = { $secretClear: true };
5901
5901
  /** The `'***'` token D634 redaction writes for non-admins. */
5902
5902
  var LEGACY_DEVICE_REDACTION = "***";
5903
- function isRecord$5(value) {
5903
+ function isRecord$6(value) {
5904
5904
  return typeof value === "object" && value !== null && !Array.isArray(value);
5905
5905
  }
5906
5906
  function makeSecretMarker(ref) {
@@ -5911,12 +5911,12 @@ function makeSecretMarker(ref) {
5911
5911
  }
5912
5912
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5913
5913
  function isSecretMarker(value) {
5914
- if (!isRecord$5(value)) return false;
5914
+ if (!isRecord$6(value)) return false;
5915
5915
  const ref = value["$secret"];
5916
5916
  return typeof ref === "string" && ref.length > 0;
5917
5917
  }
5918
5918
  function isSecretClear(value) {
5919
- return isRecord$5(value) && value["$secretClear"] === true;
5919
+ return isRecord$6(value) && value["$secretClear"] === true;
5920
5920
  }
5921
5921
  /**
5922
5922
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6526,7 +6526,7 @@ var KeychainWriteRefusedError = class extends Error {
6526
6526
  }
6527
6527
  };
6528
6528
  var KEEP = { kind: "keep" };
6529
- function isRecord$4(value) {
6529
+ function isRecord$5(value) {
6530
6530
  return typeof value === "object" && value !== null && !Array.isArray(value);
6531
6531
  }
6532
6532
  function defaultMintId() {
@@ -6539,7 +6539,7 @@ function collectSecretMarkerRefs(value, out = []) {
6539
6539
  return out;
6540
6540
  }
6541
6541
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6542
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6542
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6543
6543
  return out;
6544
6544
  }
6545
6545
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6594,7 +6594,7 @@ function rowId(row, idKey) {
6594
6594
  return null;
6595
6595
  }
6596
6596
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6597
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6597
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6598
6598
  if (!Array.isArray(incoming)) {
6599
6599
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6600
6600
  return {
@@ -6610,7 +6610,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6610
6610
  const kept = /* @__PURE__ */ new Set();
6611
6611
  const rows = [];
6612
6612
  for (const row of incoming) {
6613
- if (!isRecord$4(row)) {
6613
+ if (!isRecord$5(row)) {
6614
6614
  rows.push(row);
6615
6615
  continue;
6616
6616
  }
@@ -6635,7 +6635,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6635
6635
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6636
6636
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6637
6637
  case "object": {
6638
- if (!isRecord$4(incoming)) {
6638
+ if (!isRecord$5(incoming)) {
6639
6639
  if (incoming === void 0) return KEEP;
6640
6640
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6641
6641
  return {
@@ -6643,7 +6643,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6643
6643
  value: incoming
6644
6644
  };
6645
6645
  }
6646
- const storedObj = isRecord$4(stored) ? stored : {};
6646
+ const storedObj = isRecord$5(stored) ? stored : {};
6647
6647
  return {
6648
6648
  kind: "value",
6649
6649
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6766,7 +6766,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6766
6766
  value: items
6767
6767
  };
6768
6768
  }
6769
- if (isRecord$4(v)) {
6769
+ if (isRecord$5(v)) {
6770
6770
  const out = {};
6771
6771
  for (const [k, child] of Object.entries(v)) {
6772
6772
  const s = substitute(child);
@@ -6798,7 +6798,7 @@ var SecretOverwriteRefusedError = class extends Error {
6798
6798
  this.name = "SecretOverwriteRefusedError";
6799
6799
  }
6800
6800
  };
6801
- function isRecord$3(value) {
6801
+ function isRecord$4(value) {
6802
6802
  return typeof value === "object" && value !== null && !Array.isArray(value);
6803
6803
  }
6804
6804
  function resolvedValue(pass, marker) {
@@ -6827,7 +6827,7 @@ function inArray(pass, incoming, stored) {
6827
6827
  return incoming.map((item, index) => {
6828
6828
  const twin = stored[index];
6829
6829
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6830
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6830
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6831
6831
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6832
6832
  return item;
6833
6833
  });
@@ -6838,7 +6838,7 @@ function inArrayRow(pass, incoming, stored) {
6838
6838
  const twin = stored[key];
6839
6839
  if (isSecretMarker(twin)) {
6840
6840
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6841
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6841
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6842
6842
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6843
6843
  }
6844
6844
  return out;
@@ -6846,7 +6846,7 @@ function inArrayRow(pass, incoming, stored) {
6846
6846
  async function walk(pass, incoming, stored) {
6847
6847
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6848
6848
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6849
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6849
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6850
6850
  const out = { ...incoming };
6851
6851
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6852
6852
  return out;
@@ -6877,7 +6877,7 @@ async function restoreUnchangedSecrets(input) {
6877
6877
  function isJsonEqual(a, b) {
6878
6878
  if (Object.is(a, b)) return true;
6879
6879
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6880
- if (isRecord$3(a) && isRecord$3(b)) {
6880
+ if (isRecord$4(a) && isRecord$4(b)) {
6881
6881
  const keys = Object.keys(a);
6882
6882
  if (keys.length !== Object.keys(b).length) return false;
6883
6883
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6901,7 +6901,7 @@ function markerKeysOf(blob, owner) {
6901
6901
  }
6902
6902
  function nodeFromStored(value, owner) {
6903
6903
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6904
- if (!isRecord$3(value)) return null;
6904
+ if (!isRecord$4(value)) return null;
6905
6905
  const children = /* @__PURE__ */ new Map();
6906
6906
  for (const [key, child] of Object.entries(value)) {
6907
6907
  const node = nodeFromStored(child, owner);
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-BWvh9eD1.mjs";
1
+ import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_model_studio_page__remoteEntry_js-DpwkzK1-.mjs";
2
2
  export { t as get, e as init };
@@ -2753,7 +2753,7 @@ async function rr(e) {
2753
2753
  }
2754
2754
  }
2755
2755
  async function ir() {
2756
- return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page-CBqQ3us6.mjs")).catch((e) => {
2756
+ return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_model_studio_page--zsCCl2v.mjs")).catch((e) => {
2757
2757
  throw tr = void 0, e;
2758
2758
  }), tr;
2759
2759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-model-studio",
3
- "version": "1.1.281",
3
+ "version": "1.1.282",
4
4
  "description": "Custom detection model registry, conversion & distribution for CamStack",
5
5
  "keywords": [
6
6
  "camstack",