@plitzi/sdk-dev-tools 0.37.2 → 0.37.4

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.
@@ -1,60 +1,60 @@
1
1
  import { useMemo as e } from "react";
2
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- import { useCommonStore as r } from "@plitzi/sdk-shared/store";
4
- import { get as i } from "@plitzi/plitzi-ui/helpers";
2
+ import { get as t } from "@plitzi/plitzi-ui/helpers";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { useCommonStore as i } from "@plitzi/sdk-shared/store";
5
5
  import { formatDate as a } from "@plitzi/sdk-shared/helpers";
6
6
  //#region src/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.tsx
7
7
  var o = ({ elementId: o, startTime: s, endTime: c, duration: l }) => {
8
- let [u] = r("schema.flat"), d = e(() => o ? i(u, o) : void 0, [o, u]);
9
- return /* @__PURE__ */ n("div", {
8
+ let [u] = i("schema.flat"), d = e(() => o ? t(u, o) : void 0, [o, u]);
9
+ return /* @__PURE__ */ r("div", {
10
10
  className: "m-2 flex justify-around gap-4",
11
11
  children: [
12
- /* @__PURE__ */ n("div", {
12
+ /* @__PURE__ */ r("div", {
13
13
  className: "flex min-w-0 grow basis-0 flex-col gap-2",
14
- children: [/* @__PURE__ */ n("div", {
14
+ children: [/* @__PURE__ */ r("div", {
15
15
  className: "flex items-center gap-1 font-bold",
16
- children: [/* @__PURE__ */ t("i", { className: "fa-regular fa-clock" }), "Times"]
17
- }), /* @__PURE__ */ n("div", {
16
+ children: [/* @__PURE__ */ n("i", { className: "fa-regular fa-clock" }), "Times"]
17
+ }), /* @__PURE__ */ r("div", {
18
18
  className: "flex flex-col",
19
19
  children: [
20
- /* @__PURE__ */ n("div", {
20
+ /* @__PURE__ */ r("div", {
21
21
  className: "flex gap-1",
22
- children: [/* @__PURE__ */ t("span", { children: "Started:" }), typeof s == "string" ? s : a(s)]
22
+ children: [/* @__PURE__ */ n("span", { children: "Started:" }), typeof s == "string" ? s : a(s)]
23
23
  }),
24
- /* @__PURE__ */ n("div", {
24
+ /* @__PURE__ */ r("div", {
25
25
  className: "flex gap-1",
26
- children: [/* @__PURE__ */ t("span", { children: "End:" }), typeof c == "string" ? c : a(c)]
26
+ children: [/* @__PURE__ */ n("span", { children: "End:" }), typeof c == "string" ? c : a(c)]
27
27
  }),
28
- /* @__PURE__ */ n("div", {
28
+ /* @__PURE__ */ r("div", {
29
29
  className: "flex gap-1",
30
- children: [/* @__PURE__ */ t("span", { children: "Duration:" }), l]
30
+ children: [/* @__PURE__ */ n("span", { children: "Duration:" }), l]
31
31
  })
32
32
  ]
33
33
  })]
34
34
  }),
35
- /* @__PURE__ */ t("div", { className: "border-r border-gray-300" }),
36
- /* @__PURE__ */ n("div", {
35
+ /* @__PURE__ */ n("div", { className: "border-r border-gray-300" }),
36
+ /* @__PURE__ */ r("div", {
37
37
  className: "flex min-w-0 grow basis-0 flex-col gap-2",
38
- children: [/* @__PURE__ */ n("div", {
38
+ children: [/* @__PURE__ */ r("div", {
39
39
  className: "flex items-center gap-1",
40
- children: [/* @__PURE__ */ t("i", { className: "fa-solid fa-circle-info" }), "Details"]
41
- }), /* @__PURE__ */ n("div", {
40
+ children: [/* @__PURE__ */ n("i", { className: "fa-solid fa-circle-info" }), "Details"]
41
+ }), /* @__PURE__ */ r("div", {
42
42
  className: "flex flex-col",
43
43
  children: [
44
- /* @__PURE__ */ n("div", {
44
+ /* @__PURE__ */ r("div", {
45
45
  className: "flex gap-1",
46
- children: [/* @__PURE__ */ t("span", { children: "Type:" }), /* @__PURE__ */ t("span", { children: "Navigation" })]
46
+ children: [/* @__PURE__ */ n("span", { children: "Type:" }), /* @__PURE__ */ n("span", { children: "Navigation" })]
47
47
  }),
48
- /* @__PURE__ */ n("div", {
48
+ /* @__PURE__ */ r("div", {
49
49
  className: "flex gap-1",
50
- children: [/* @__PURE__ */ t("span", { children: "Trigger:" }), /* @__PURE__ */ t("span", {
50
+ children: [/* @__PURE__ */ n("span", { children: "Trigger:" }), /* @__PURE__ */ n("span", {
51
51
  className: "truncate",
52
52
  children: "-"
53
53
  })]
54
54
  }),
55
- d && /* @__PURE__ */ n("div", {
55
+ d && /* @__PURE__ */ r("div", {
56
56
  className: "flex gap-1",
57
- children: [/* @__PURE__ */ t("span", { children: "Element:" }), /* @__PURE__ */ n("span", {
57
+ children: [/* @__PURE__ */ n("span", { children: "Element:" }), /* @__PURE__ */ r("span", {
58
58
  className: "cursor-pointer truncate text-blue-500",
59
59
  children: [
60
60
  d.definition.label,
@@ -1,29 +1,29 @@
1
- import { buildScopeOptions as e, instanceEntries as t, resolveSelectedUid as n } from "./helpers.mjs";
2
- import { selectInstance as r, useDevInstances as i } from "../instanceRegistry.mjs";
1
+ import { selectInstance as e, useDevInstances as t } from "../instanceRegistry.mjs";
2
+ import { buildScopeOptions as n, instanceEntries as r, resolveSelectedUid as i } from "./helpers.mjs";
3
3
  import { selectStore as a, useSelectedStoreUid as o } from "./storeSelection.mjs";
4
4
  import s from "./useDevStores.mjs";
5
5
  import { useCallback as c, useMemo as l } from "react";
6
6
  //#region src/scope/useScope.ts
7
7
  var u = () => {
8
- let t = s(), { instanceIds: u, selectedId: d } = i(), f = o();
8
+ let r = s(), { instanceIds: u, selectedId: d } = t(), f = o();
9
9
  return {
10
- options: l(() => e(t, u, d), [
11
- t,
10
+ options: l(() => n(r, u, d), [
11
+ r,
12
12
  u,
13
13
  d
14
14
  ]),
15
- value: l(() => n(t, f), [t, f]),
16
- onSelect: c((e) => {
17
- let n = t.find((t) => t.uid === e);
18
- n?.scopeId && r(n.scopeId), a(e);
19
- }, [t])
15
+ value: l(() => i(r, f), [r, f]),
16
+ onSelect: c((t) => {
17
+ let n = r.find((e) => e.uid === t);
18
+ n?.scopeId && e(n.scopeId), a(t);
19
+ }, [r])
20
20
  };
21
21
  }, d = () => {
22
- let e = s(), t = o(), r = l(() => n(e, t), [e, t]);
23
- return l(() => e.find((e) => e.uid === r), [e, r]);
22
+ let e = s(), t = o(), n = l(() => i(e, t), [e, t]);
23
+ return l(() => e.find((e) => e.uid === n), [e, n]);
24
24
  }, f = () => d()?.store, p = () => {
25
- let e = s(), { selectedId: n } = i();
26
- return l(() => t(e, n, n), [e, n]);
25
+ let e = s(), { selectedId: n } = t();
26
+ return l(() => r(e, n, n), [e, n]);
27
27
  };
28
28
  //#endregion
29
29
  export { p as useInstanceStores, u as useScopeSelector, f as useSelectedStore, d as useSelectedStoreEntry };
@@ -1,10 +1,10 @@
1
1
  import { useEffect as e } from "react";
2
- import { queryCache as t } from "@plitzi/sdk-shared/queries";
3
- import { registerDevStore as n } from "@plitzi/nexus";
2
+ import { registerDevStore as t } from "@plitzi/nexus";
3
+ import { queryCache as n } from "@plitzi/sdk-shared/queries";
4
4
  //#region src/useRegisterQueriesStore.ts
5
5
  var r = (r, i) => {
6
6
  e(() => {
7
- if (r) return n(t.store, i, "Queries");
7
+ if (r) return t(n.store, i, "Queries");
8
8
  }, [r, i]);
9
9
  };
10
10
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-dev-tools",
3
- "version": "0.37.2",
3
+ "version": "0.37.4",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist"
@@ -837,7 +837,7 @@
837
837
  "react": "^19.3.0",
838
838
  "react-dom": "^19.3.0",
839
839
  "typescript": "^6.0.3",
840
- "vite": "^8.3.0",
840
+ "vite": "^8.3.1",
841
841
  "vitest": "^5.0.1"
842
842
  },
843
843
  "peerDependencies": {
@@ -845,12 +845,12 @@
845
845
  "react-dom": "^19"
846
846
  },
847
847
  "dependencies": {
848
- "@plitzi/nexus": "^1.2.2",
849
- "@plitzi/plitzi-ui": "^1.6.22",
850
- "@plitzi/sdk-navigation": "0.37.2",
851
- "@plitzi/sdk-schema": "0.37.2",
852
- "@plitzi/sdk-shared": "0.37.2",
853
- "@plitzi/sdk-style": "0.37.2",
848
+ "@plitzi/nexus": "^1.3.1",
849
+ "@plitzi/plitzi-ui": "^1.6.24",
850
+ "@plitzi/sdk-navigation": "0.37.4",
851
+ "@plitzi/sdk-schema": "0.37.4",
852
+ "@plitzi/sdk-shared": "0.37.4",
853
+ "@plitzi/sdk-style": "0.37.4",
854
854
  "@uiw/react-json-view": "^2.0.0-alpha.43",
855
855
  "clsx": "^2.1.1"
856
856
  }