prometeo-design-system 3.1.6 → 3.1.7

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.
@@ -614,7 +614,7 @@ const ct = ({ tabs: a, content: l, controls: s }) => /* @__PURE__ */ e.jsxs(H, {
614
614
  const n = N(() => {
615
615
  if (a) {
616
616
  if (s) {
617
- const f = a.find((b) => b.system_id === s);
617
+ const f = a.find((b) => b._id === s);
618
618
  if (f) return { coverImage: f.coverImage, thumbnail: f.thumbnail };
619
619
  }
620
620
  const o = window.location.origin, i = a.find((f) => f.url === o);
@@ -707,7 +707,7 @@ const ft = (a) => {
707
707
  }, f = (x) => {
708
708
  if (!o)
709
709
  return;
710
- const v = x.systems?.find((g) => g.system_id === d)?.metadata;
710
+ const v = x.systems?.find((g) => g._id === d)?.metadata;
711
711
  return v ? te(v, o) : void 0;
712
712
  }, b = N((x) => typeof n == "function" ? n(x) : n, [n]);
713
713
  return /* @__PURE__ */ e.jsx("div", { className: "w-full h-full flex flex-col gap-2", children: l?.map((x) => {
@@ -777,7 +777,7 @@ const ft = (a) => {
777
777
  ...L,
778
778
  ...G,
779
779
  ...oe
780
- ], V = O(null), de = O(null), K = s.sessions?.filter((t) => t.systems?.some((c) => c.system_id === y)), J = N((t, c) => {
780
+ ], V = O(null), de = O(null), K = s.sessions?.filter((t) => t.systems?.some((c) => c._id === y)), J = N((t, c) => {
781
781
  if (!t) return null;
782
782
  if (Array.isArray(t)) {
783
783
  const h = t?.[0] ? te(c, t[0]) : null, w = t?.[1] ? te(c, t[1]) : null;
@@ -794,7 +794,7 @@ const ft = (a) => {
794
794
  (t) => {
795
795
  const c = u?.userCardOptions?.secondarySlot;
796
796
  if (!c) return null;
797
- const h = s.enabled_systems?.find((_) => _.system_id === y), w = { company: s.company, user: s.user, system: h, metadata: t };
797
+ const h = s.enabled_systems?.find((_) => _._id === y), w = { company: s.company, user: s.user, system: h, metadata: t };
798
798
  return J(c, w);
799
799
  },
800
800
  [y, u?.userCardOptions?.secondarySlot, J, s.company, s.enabled_systems, s.user]
@@ -802,7 +802,7 @@ const ft = (a) => {
802
802
  (t) => {
803
803
  const c = u?.sessionCardOptions?.secondarySlot || u?.userCardOptions?.secondarySlot;
804
804
  if (!c) return null;
805
- const h = t.systems?.find((_) => _.system_id === y), w = { company: s.company, user: t.userHub, system: h, metadata: h?.metadata };
805
+ const h = t.systems?.find((_) => _._id === y), w = { company: s.company, user: t.userHub, system: h, metadata: h?.metadata };
806
806
  return J(c, w);
807
807
  },
808
808
  [y, u?.sessionCardOptions?.secondarySlot, u?.userCardOptions?.secondarySlot, J, s.company]
@@ -30,7 +30,7 @@ export type TSystem = {
30
30
  url: string;
31
31
  coverImage?: string;
32
32
  thumbnail?: string;
33
- system_id: string;
33
+ _id: string;
34
34
  };
35
35
  type TSystemSession<TSystemMetadata> = TSystem & {
36
36
  metadata?: TSystemMetadata;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "3.1.6",
4
+ "version": "3.1.7",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",