@insforge/dashboard 0.0.0-dev.5 → 0.0.0-dev.6

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/index.js CHANGED
@@ -23582,9 +23582,12 @@ function kT({
23582
23582
  connectDialogOpen: e,
23583
23583
  onConnectDialogOpenChange: n
23584
23584
  }) {
23585
- const [r, s] = z(!1), [i, o] = z(!1), [a, c] = z("info"), u = e !== void 0, d = u ? e : r, h = ie((m) => {
23586
- u || s(m), n?.(m);
23587
- }, [u, n]), f = ie((m = "info") => {
23585
+ const [r, s] = z(!1), [i, o] = z(!1), [a, c] = z("info"), u = e !== void 0, d = u ? e : r, h = ie(
23586
+ (m) => {
23587
+ u || s(m), n?.(m);
23588
+ },
23589
+ [u, n]
23590
+ ), f = ie((m = "info") => {
23588
23591
  c(m), o(!0);
23589
23592
  }, []), p = ie(() => {
23590
23593
  o(!1);
@@ -26836,7 +26839,7 @@ function Fs({
26836
26839
  w
26837
26840
  ),
26838
26841
  children: [
26839
- /* @__PURE__ */ l.jsxs("div", { className: ae("flex min-h-0 flex-1 overflow-hidden", !N && "px-3"), children: [
26842
+ /* @__PURE__ */ l.jsxs("div", { className: ae("flex min-h-0 min-w-0 flex-1 overflow-hidden", !N && "px-3"), children: [
26840
26843
  /* @__PURE__ */ l.jsxs(
26841
26844
  "div",
26842
26845
  {
@@ -55813,12 +55816,12 @@ function _L(t) {
55813
55816
  projectInfo: r,
55814
55817
  isLoading: !1,
55815
55818
  error: null,
55816
- refetch: async () => ({ data: r })
55819
+ refetch: () => Promise.resolve({ data: r })
55817
55820
  } : {
55818
55821
  projectInfo: n,
55819
55822
  isLoading: !1,
55820
55823
  error: null,
55821
- refetch: async () => ({ data: n })
55824
+ refetch: () => Promise.resolve({ data: n })
55822
55825
  };
55823
55826
  }
55824
55827
  function Vs() {
@@ -56090,7 +56093,10 @@ function qye() {
56090
56093
  try {
56091
56094
  await t.onUpdateVersion();
56092
56095
  } catch (ue) {
56093
- d(!1), F(ue instanceof Error ? ue.message : "Failed to update project version", "error");
56096
+ d(!1), F(
56097
+ ue instanceof Error ? ue.message : "Failed to update project version",
56098
+ "error"
56099
+ );
56094
56100
  }
56095
56101
  return;
56096
56102
  }
@@ -56103,7 +56109,10 @@ function qye() {
56103
56109
  try {
56104
56110
  await t.onRenameProject(ue);
56105
56111
  } catch (Le) {
56106
- F(Le instanceof Error ? Le.message : "Failed to update project name", "error");
56112
+ F(
56113
+ Le instanceof Error ? Le.message : "Failed to update project name",
56114
+ "error"
56115
+ );
56107
56116
  return;
56108
56117
  }
56109
56118
  else
@@ -56153,7 +56162,10 @@ function qye() {
56153
56162
  }
56154
56163
  F(ue.error || "Failed to update compute size", "error");
56155
56164
  } catch (ue) {
56156
- k(!1), F(ue instanceof Error ? ue.message : "Failed to update compute size", "error");
56165
+ k(!1), F(
56166
+ ue instanceof Error ? ue.message : "Failed to update compute size",
56167
+ "error"
56168
+ );
56157
56169
  }
56158
56170
  return;
56159
56171
  }
@@ -56488,7 +56500,7 @@ function Hye({ children: t }) {
56488
56500
  showHeader: r,
56489
56501
  header: /* @__PURE__ */ l.jsx(uxe, {}),
56490
56502
  className: ae(
56491
- "min-h-0 bg-semantic-0 flex flex-col",
56503
+ "min-h-0 min-w-0 bg-semantic-0 flex flex-col",
56492
56504
  n ? "h-full" : "h-screen"
56493
56505
  ),
56494
56506
  contentClassName: "min-h-0 min-w-0 flex-1 flex overflow-hidden",
@@ -63651,8 +63663,8 @@ function rg({ label: t, value: e, unit: n, icon: r }) {
63651
63663
  ] });
63652
63664
  }
63653
63665
  function g5e() {
63654
- return /* @__PURE__ */ l.jsx("main", { className: "h-full overflow-y-auto bg-semantic-0 lg:overflow-hidden", children: /* @__PURE__ */ l.jsxs("div", { className: "flex min-h-full flex-col lg:h-full lg:flex-row", children: [
63655
- /* @__PURE__ */ l.jsx("section", { className: "w-full shrink-0 border-b border-[var(--alpha-8)] px-10 py-10 lg:w-[480px] lg:border-b-0 lg:border-r", children: /* @__PURE__ */ l.jsxs("div", { className: "mx-auto flex w-full max-w-[400px] flex-col gap-12", children: [
63666
+ return /* @__PURE__ */ l.jsx("main", { className: "h-full min-h-0 min-w-0 overflow-y-auto bg-semantic-0 lg:overflow-hidden", children: /* @__PURE__ */ l.jsxs("div", { className: "flex min-h-full min-w-0 flex-col lg:h-full lg:min-h-0 lg:flex-row", children: [
63667
+ /* @__PURE__ */ l.jsx("section", { className: "w-full min-w-0 shrink-0 border-b border-[var(--alpha-8)] px-10 py-10 lg:w-[480px] lg:border-b-0 lg:border-r", children: /* @__PURE__ */ l.jsxs("div", { className: "mx-auto flex w-full max-w-[400px] flex-col gap-12", children: [
63656
63668
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-12", children: [
63657
63669
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2", children: [
63658
63670
  /* @__PURE__ */ l.jsx(zt, { className: "h-8 w-56" }),
@@ -63809,7 +63821,7 @@ function x5e() {
63809
63821
  de <= 0 || re <= 0 || de === J && re === W || (J = de, W = re, w((be) => be + 1));
63810
63822
  });
63811
63823
  return K.observe(Z), () => K.disconnect();
63812
- }, []), E ? /* @__PURE__ */ l.jsx(g5e, {}) : /* @__PURE__ */ l.jsx("main", { className: "h-full min-w-0 overflow-y-auto bg-semantic-0 lg:overflow-hidden", children: /* @__PURE__ */ l.jsxs("div", { className: "flex min-h-full min-w-0 flex-col lg:h-full lg:flex-row", children: [
63824
+ }, []), E ? /* @__PURE__ */ l.jsx(g5e, {}) : /* @__PURE__ */ l.jsx("main", { className: "h-full min-h-0 min-w-0 overflow-y-auto bg-semantic-0 lg:overflow-hidden", children: /* @__PURE__ */ l.jsxs("div", { className: "flex min-h-full min-w-0 flex-col lg:h-full lg:min-h-0 lg:flex-row", children: [
63813
63825
  /* @__PURE__ */ l.jsx("section", { className: "w-full min-w-0 shrink-0 border-b border-[var(--alpha-8)] px-10 py-10 lg:w-[480px] lg:border-b-0 lg:border-r", children: /* @__PURE__ */ l.jsxs("div", { className: "mx-auto flex w-full max-w-[400px] flex-col gap-12", children: [
63814
63826
  /* @__PURE__ */ l.jsxs("div", { className: "flex flex-col gap-12", children: [
63815
63827
  /* @__PURE__ */ l.jsxs("div", { className: "flex items-center gap-2", children: [
@@ -63907,7 +63919,7 @@ function x5e() {
63907
63919
  }
63908
63920
  }
63909
63921
  ),
63910
- /* @__PURE__ */ l.jsx("div", { ref: b, className: "relative z-10 h-full w-full min-w-0", children: /* @__PURE__ */ l.jsxs(
63922
+ /* @__PURE__ */ l.jsx("div", { ref: b, className: "relative z-10 h-full w-full min-h-0 min-w-0", children: /* @__PURE__ */ l.jsxs(
63911
63923
  NF,
63912
63924
  {
63913
63925
  nodes: I,
@@ -83102,8 +83114,11 @@ function EU({ children: t }) {
83102
83114
  }, [e, u, d]), ce(() => () => {
83103
83115
  d();
83104
83116
  }, [d]);
83105
- const h = ie((p) => {
83106
- }, [r]);
83117
+ const h = ie(
83118
+ (p) => {
83119
+ },
83120
+ [r]
83121
+ );
83107
83122
  ce(() => {
83108
83123
  const p = o.current;
83109
83124
  if (!p || !s.isConnected)
@@ -83215,7 +83230,7 @@ function zNe({
83215
83230
  ) });
83216
83231
  }
83217
83232
  function qNe(t) {
83218
- return /* @__PURE__ */ l.jsx("div", { className: "if-dashboard flex h-full min-h-0 flex-col", children: /* @__PURE__ */ l.jsx(HB, { initialEntries: [t.initialPath || "/dashboard"], children: /* @__PURE__ */ l.jsxs(r9, { ...t, children: [
83233
+ return /* @__PURE__ */ l.jsx("div", { className: "if-dashboard flex h-full min-h-0 min-w-0 flex-col", children: /* @__PURE__ */ l.jsx(HB, { initialEntries: [t.initialPath || "/dashboard"], children: /* @__PURE__ */ l.jsxs(r9, { ...t, children: [
83219
83234
  /* @__PURE__ */ l.jsx(VNe, {}),
83220
83235
  /* @__PURE__ */ l.jsx(i9, { children: /* @__PURE__ */ l.jsx(EU, { children: /* @__PURE__ */ l.jsx(ML, { children: /* @__PURE__ */ l.jsx(PL, { children: /* @__PURE__ */ l.jsx(
83221
83236
  kT,
@@ -10,7 +10,7 @@ interface UseCloudProjectInfoOptions {
10
10
  timeoutMs?: number;
11
11
  }
12
12
  export declare const CLOUD_PROJECT_INFO_QUERY_KEY: string[];
13
- export declare function useCloudProjectInfo(options?: UseCloudProjectInfoOptions): {
13
+ export declare function useCloudProjectInfo(_options?: UseCloudProjectInfoOptions): {
14
14
  projectInfo: CloudProjectInfo;
15
15
  isLoading: boolean;
16
16
  error: null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insforge/dashboard",
3
- "version": "0.0.0-dev.5",
3
+ "version": "0.0.0-dev.6",
4
4
  "description": "Shared InsForge dashboard package for self-hosting and cloud-hosting hosts",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",