@plitzi/sdk-dev-tools 0.30.19 → 0.31.1
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/CHANGELOG.md +30 -3
- package/dist/DevToolsContextProvider.mjs +4 -4
- package/dist/components/DevToolsPanel/DevToolsBody.mjs +25 -23
- package/dist/components/DevToolsPanel/DevToolsHeader.mjs +7 -2
- package/dist/components/DevToolsPanel/DevToolsPanel.mjs +33 -32
- package/dist/components/DevToolsPanel/DevToolsSubHeader.mjs +8 -8
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsValue.mjs +10 -10
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementDetails.mjs +7 -7
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsList.mjs +9 -9
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsViewer.mjs +6 -6
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/HistoryViewer.d.ts +2 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/HistoryViewer.mjs +57 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/HistoryEntryItem.d.ts +12 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/HistoryEntryItem.mjs +37 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/index.d.ts +2 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/index.mjs +2 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/HistoryToolbar.d.ts +13 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/HistoryToolbar.mjs +45 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/index.d.ts +2 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/index.mjs +2 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/helpers.d.ts +4 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/helpers.mjs +15 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyContent.mjs +8 -8
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyHeader.mjs +30 -30
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTree.mjs +11 -11
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.mjs +26 -26
- package/dist/components/DevToolsPanel/tabs/StoreViewer/StoreViewer.d.ts +5 -0
- package/dist/components/DevToolsPanel/tabs/StoreViewer/StoreViewer.mjs +32 -0
- package/dist/components/DevToolsPanel/tabs/StoreViewer/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/StoreViewer/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesViewer.mjs +20 -20
- package/package.json +63 -12
- package/dist/components/DevToolsPanel/tabs/DataSourceViewer/DataSourceViewer.d.ts +0 -5
- package/dist/components/DevToolsPanel/tabs/DataSourceViewer/DataSourceViewer.mjs +0 -30
- package/dist/components/DevToolsPanel/tabs/DataSourceViewer/index.d.ts +0 -3
- package/dist/components/DevToolsPanel/tabs/DataSourceViewer/index.mjs +0 -5
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/components/DevToolsPanel/tabs/HistoryViewer/helpers.ts
|
|
2
|
+
var e = (e) => new Date(e).toLocaleTimeString(void 0, { hour12: !1 }) + "." + String(e % 1e3).padStart(3, "0"), t = (e) => {
|
|
3
|
+
if (e === void 0) return "";
|
|
4
|
+
if (typeof e == "string") return e;
|
|
5
|
+
if (typeof e == "number" || typeof e == "boolean") return String(e);
|
|
6
|
+
let t = Array.isArray(e) ? "[…]" : "{…}", n;
|
|
7
|
+
try {
|
|
8
|
+
n = JSON.stringify(e) || t;
|
|
9
|
+
} catch {
|
|
10
|
+
n = t;
|
|
11
|
+
}
|
|
12
|
+
return n.length > 120 ? n.slice(0, 120) + "…" : n;
|
|
13
|
+
}, n = (e, t) => t ? (e.path ?? "").toLowerCase().includes(t.toLowerCase()) : !0;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { e as formatTime, n as matchesFilter, t as previewValue };
|
|
@@ -2,25 +2,25 @@ import e from "./ExecutionTree/index.mjs";
|
|
|
2
2
|
import t from "./InteractionNode/index.mjs";
|
|
3
3
|
import n from "clsx";
|
|
4
4
|
import { useCallback as r, useMemo as i, useState as a } from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { get as o } from "@plitzi/plitzi-ui/helpers";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyContent.tsx
|
|
8
8
|
var l = ({ className: l, node: u, nodes: d }) => {
|
|
9
|
-
let [f, p] = a(u.id), m = i(() =>
|
|
10
|
-
return /* @__PURE__ */
|
|
9
|
+
let [f, p] = a(u.id), m = i(() => o(d, `${f}`), [f, d]), h = r((e) => p(e), []);
|
|
10
|
+
return /* @__PURE__ */ c("div", {
|
|
11
11
|
className: n("flex", l),
|
|
12
12
|
children: [
|
|
13
|
-
/* @__PURE__ */
|
|
13
|
+
/* @__PURE__ */ s(e, {
|
|
14
14
|
className: "grow basis-0",
|
|
15
15
|
nodeId: u.id,
|
|
16
16
|
nodes: d,
|
|
17
17
|
selected: f,
|
|
18
18
|
onSelect: h
|
|
19
19
|
}),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
f && /* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ s("div", { className: "mx-1 w-px shrink-0 bg-zinc-200 dark:bg-zinc-800" }),
|
|
21
|
+
f && /* @__PURE__ */ s("div", {
|
|
22
22
|
className: "flex min-w-0 grow basis-0",
|
|
23
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ s(t, {
|
|
24
24
|
whenParams: m.whenParams,
|
|
25
25
|
status: m.status,
|
|
26
26
|
name: m.node.title,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useCallback as e, useMemo as t } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { createStoreHook as n } from "@plitzi/nexus/createStore";
|
|
3
|
+
import { get as r } from "@plitzi/plitzi-ui/helpers";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
5
|
import { formatDate as o } from "@plitzi/sdk-shared/helpers";
|
|
6
6
|
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyHeader.tsx
|
|
7
7
|
var s = ({ triggerName: s, startTime: c, endTime: l, duration: u, elementId: d }) => {
|
|
8
|
-
let { useStore: f } =
|
|
8
|
+
let { useStore: f } = n(), [p] = f("schema.flat"), m = t(() => d ? r(p, d) : void 0, [d, p]), h = t(() => o(c, "HH:mm:ss.SSS"), [c]), g = t(() => o(l, "HH:mm:ss.SSS"), [l]), _ = t(() => {
|
|
9
9
|
if (!(typeof document > "u")) return document.querySelector(`[data-id="${d}"]`);
|
|
10
10
|
}, [d]), v = e(() => {
|
|
11
11
|
_?.scrollIntoView({
|
|
@@ -18,34 +18,34 @@ var s = ({ triggerName: s, startTime: c, endTime: l, duration: u, elementId: d }
|
|
|
18
18
|
}, [_]), b = e(() => {
|
|
19
19
|
_?.classList.remove("devtools-element-hovered");
|
|
20
20
|
}, [_]);
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ a("div", {
|
|
22
22
|
className: "flex justify-around gap-3",
|
|
23
23
|
children: [
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ a("div", {
|
|
25
25
|
className: "flex min-w-0 grow basis-0 flex-col",
|
|
26
|
-
children: [/* @__PURE__ */
|
|
26
|
+
children: [/* @__PURE__ */ a("div", {
|
|
27
27
|
className: "mb-1 flex items-center gap-1.5 text-[10px] font-semibold tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
28
|
-
children: [/* @__PURE__ */
|
|
29
|
-
}), /* @__PURE__ */
|
|
28
|
+
children: [/* @__PURE__ */ i("i", { className: "fa-regular fa-clock" }), "Times"]
|
|
29
|
+
}), /* @__PURE__ */ a("div", {
|
|
30
30
|
className: "flex flex-col gap-0.5 font-mono text-zinc-700 dark:text-zinc-300",
|
|
31
31
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ a("div", {
|
|
33
33
|
className: "flex gap-1",
|
|
34
|
-
children: [/* @__PURE__ */
|
|
34
|
+
children: [/* @__PURE__ */ i("span", {
|
|
35
35
|
className: "text-zinc-400 dark:text-zinc-500",
|
|
36
36
|
children: "Start"
|
|
37
37
|
}), h]
|
|
38
38
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ a("div", {
|
|
40
40
|
className: "flex gap-1",
|
|
41
|
-
children: [/* @__PURE__ */
|
|
41
|
+
children: [/* @__PURE__ */ i("span", {
|
|
42
42
|
className: "text-zinc-400 dark:text-zinc-500",
|
|
43
43
|
children: "End"
|
|
44
44
|
}), g]
|
|
45
45
|
}),
|
|
46
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ a("div", {
|
|
47
47
|
className: "flex gap-1",
|
|
48
|
-
children: [/* @__PURE__ */
|
|
48
|
+
children: [/* @__PURE__ */ i("span", {
|
|
49
49
|
className: "text-zinc-400 dark:text-zinc-500",
|
|
50
50
|
children: "Duration"
|
|
51
51
|
}), u]
|
|
@@ -53,43 +53,43 @@ var s = ({ triggerName: s, startTime: c, endTime: l, duration: u, elementId: d }
|
|
|
53
53
|
]
|
|
54
54
|
})]
|
|
55
55
|
}),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ i("div", { className: "w-px shrink-0 bg-zinc-200 dark:bg-zinc-800" }),
|
|
57
|
+
/* @__PURE__ */ a("div", {
|
|
58
58
|
className: "flex min-w-0 grow basis-0 flex-col",
|
|
59
|
-
children: [/* @__PURE__ */
|
|
59
|
+
children: [/* @__PURE__ */ a("div", {
|
|
60
60
|
className: "mb-1 flex items-center gap-1.5 text-[10px] font-semibold tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
62
|
-
}), /* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ i("i", { className: "fa-solid fa-circle-info" }), "Details"]
|
|
62
|
+
}), /* @__PURE__ */ a("div", {
|
|
63
63
|
className: "flex flex-col gap-0.5 text-zinc-700 dark:text-zinc-300",
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ a("div", {
|
|
66
66
|
className: "flex gap-1",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ i("span", {
|
|
68
68
|
className: "text-zinc-400 dark:text-zinc-500",
|
|
69
69
|
children: "Type"
|
|
70
|
-
}), /* @__PURE__ */
|
|
70
|
+
}), /* @__PURE__ */ i("span", { children: "Interaction" })]
|
|
71
71
|
}),
|
|
72
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ a("div", {
|
|
73
73
|
className: "flex min-w-0 gap-1",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
74
|
+
children: [/* @__PURE__ */ i("span", {
|
|
75
75
|
className: "shrink-0 text-zinc-400 dark:text-zinc-500",
|
|
76
76
|
children: "Trigger"
|
|
77
|
-
}), /* @__PURE__ */
|
|
77
|
+
}), /* @__PURE__ */ i("span", {
|
|
78
78
|
className: "truncate",
|
|
79
79
|
children: s
|
|
80
80
|
})]
|
|
81
81
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ a("div", {
|
|
83
83
|
className: "flex min-w-0 gap-1",
|
|
84
|
-
children: [/* @__PURE__ */
|
|
84
|
+
children: [/* @__PURE__ */ i("span", {
|
|
85
85
|
className: "shrink-0 text-zinc-400 dark:text-zinc-500",
|
|
86
86
|
children: "Element"
|
|
87
|
-
}), /* @__PURE__ */
|
|
87
|
+
}), /* @__PURE__ */ a("span", {
|
|
88
88
|
className: "cursor-pointer truncate text-violet-600 hover:text-violet-500 dark:text-violet-400 dark:hover:text-violet-300",
|
|
89
89
|
onClick: v,
|
|
90
90
|
onMouseEnter: y,
|
|
91
91
|
onMouseLeave: b,
|
|
92
|
-
children: [m?.definition.label, d && /* @__PURE__ */
|
|
92
|
+
children: [m?.definition.label, d && /* @__PURE__ */ a("span", {
|
|
93
93
|
className: "ml-1 font-mono text-[10px] text-zinc-400 dark:text-zinc-500",
|
|
94
94
|
children: [
|
|
95
95
|
"[",
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import e from "./ExecutionTreeNode.mjs";
|
|
2
2
|
import t from "clsx";
|
|
3
3
|
import { useCallback as n, useMemo as r } from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { get as i } from "@plitzi/plitzi-ui/helpers";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
6
|
import { getDurationMs as s } from "@plitzi/sdk-shared";
|
|
7
7
|
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTree.tsx
|
|
8
8
|
var c = ({ className: c, nodeId: l, nodes: u, selected: d, onSelect: f }) => {
|
|
9
9
|
let p = r(() => {
|
|
10
|
-
let e =
|
|
10
|
+
let e = i(u, l), t = [];
|
|
11
11
|
for (; e;) {
|
|
12
|
-
let { node: n, startTime: r, endTime:
|
|
12
|
+
let { node: n, startTime: r, endTime: a } = e, o = `${s(r, a)}ms`, c = n.id === l ? 0 : 1;
|
|
13
13
|
t.push({
|
|
14
14
|
id: n.id,
|
|
15
15
|
action: n.action,
|
|
16
16
|
title: n.title,
|
|
17
17
|
status: e.status,
|
|
18
18
|
level: c,
|
|
19
|
-
duration:
|
|
20
|
-
}), e =
|
|
19
|
+
duration: o
|
|
20
|
+
}), e = i(u, n.afterNode);
|
|
21
21
|
}
|
|
22
22
|
return t;
|
|
23
23
|
}, [l, u]), m = n((e) => f?.(e), [f]);
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ o("div", {
|
|
25
25
|
className: t("flex flex-col gap-1.5", c),
|
|
26
|
-
children: [/* @__PURE__ */
|
|
26
|
+
children: [/* @__PURE__ */ o("div", {
|
|
27
27
|
className: "flex items-center gap-1.5 px-2 text-[10px] font-semibold tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
28
|
-
children: [/* @__PURE__ */
|
|
29
|
-
}), /* @__PURE__ */
|
|
28
|
+
children: [/* @__PURE__ */ a("i", { className: "fa-solid fa-code-merge" }), "Execution Tree"]
|
|
29
|
+
}), /* @__PURE__ */ a("div", {
|
|
30
30
|
className: "flex flex-col",
|
|
31
|
-
children: p.map((t, n) => /* @__PURE__ */
|
|
31
|
+
children: p.map((t, n) => /* @__PURE__ */ a(e, {
|
|
32
32
|
id: t.id,
|
|
33
33
|
action: t.action,
|
|
34
34
|
title: t.title,
|
package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.mjs
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { useMemo as e } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { createStoreHook as t } from "@plitzi/nexus/createStore";
|
|
3
|
+
import { get as n } from "@plitzi/plitzi-ui/helpers";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
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 { useStore: u } =
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
let { useStore: u } = t(), [d] = u("schema.flat"), f = e(() => o ? n(d, o) : void 0, [o, d]);
|
|
9
|
+
return /* @__PURE__ */ i("div", {
|
|
10
10
|
className: "m-2 flex justify-around gap-4",
|
|
11
11
|
children: [
|
|
12
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ i("div", {
|
|
13
13
|
className: "flex min-w-0 grow basis-0 flex-col gap-2",
|
|
14
|
-
children: [/* @__PURE__ */
|
|
14
|
+
children: [/* @__PURE__ */ i("div", {
|
|
15
15
|
className: "flex items-center gap-1 font-bold",
|
|
16
|
-
children: [/* @__PURE__ */
|
|
17
|
-
}), /* @__PURE__ */
|
|
16
|
+
children: [/* @__PURE__ */ r("i", { className: "fa-regular fa-clock" }), "Times"]
|
|
17
|
+
}), /* @__PURE__ */ i("div", {
|
|
18
18
|
className: "flex flex-col",
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ i("div", {
|
|
21
21
|
className: "flex gap-1",
|
|
22
|
-
children: [/* @__PURE__ */
|
|
22
|
+
children: [/* @__PURE__ */ r("span", { children: "Started:" }), typeof s == "string" ? s : a(s)]
|
|
23
23
|
}),
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ i("div", {
|
|
25
25
|
className: "flex gap-1",
|
|
26
|
-
children: [/* @__PURE__ */
|
|
26
|
+
children: [/* @__PURE__ */ r("span", { children: "End:" }), typeof c == "string" ? c : a(c)]
|
|
27
27
|
}),
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ i("div", {
|
|
29
29
|
className: "flex gap-1",
|
|
30
|
-
children: [/* @__PURE__ */
|
|
30
|
+
children: [/* @__PURE__ */ r("span", { children: "Duration:" }), l]
|
|
31
31
|
})
|
|
32
32
|
]
|
|
33
33
|
})]
|
|
34
34
|
}),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ r("div", { className: "border-r border-gray-300" }),
|
|
36
|
+
/* @__PURE__ */ i("div", {
|
|
37
37
|
className: "flex min-w-0 grow basis-0 flex-col gap-2",
|
|
38
|
-
children: [/* @__PURE__ */
|
|
38
|
+
children: [/* @__PURE__ */ i("div", {
|
|
39
39
|
className: "flex items-center gap-1",
|
|
40
|
-
children: [/* @__PURE__ */
|
|
41
|
-
}), /* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ r("i", { className: "fa-solid fa-circle-info" }), "Details"]
|
|
41
|
+
}), /* @__PURE__ */ i("div", {
|
|
42
42
|
className: "flex flex-col",
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ i("div", {
|
|
45
45
|
className: "flex gap-1",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
46
|
+
children: [/* @__PURE__ */ r("span", { children: "Type:" }), /* @__PURE__ */ r("span", { children: "Navigation" })]
|
|
47
47
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ i("div", {
|
|
49
49
|
className: "flex gap-1",
|
|
50
|
-
children: [/* @__PURE__ */
|
|
50
|
+
children: [/* @__PURE__ */ r("span", { children: "Trigger:" }), /* @__PURE__ */ r("span", {
|
|
51
51
|
className: "truncate",
|
|
52
52
|
children: "-"
|
|
53
53
|
})]
|
|
54
54
|
}),
|
|
55
|
-
f && /* @__PURE__ */
|
|
55
|
+
f && /* @__PURE__ */ i("div", {
|
|
56
56
|
className: "flex gap-1",
|
|
57
|
-
children: [/* @__PURE__ */
|
|
57
|
+
children: [/* @__PURE__ */ r("span", { children: "Element:" }), /* @__PURE__ */ i("span", {
|
|
58
58
|
className: "cursor-pointer truncate text-blue-500",
|
|
59
59
|
children: [
|
|
60
60
|
f.definition.label,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { use as e } from "react";
|
|
2
|
+
import t from "@plitzi/sdk-shared/devTools/DevToolsContext";
|
|
3
|
+
import { createStoreHook as n } from "@plitzi/nexus/createStore";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
import i from "@uiw/react-json-view";
|
|
6
|
+
import * as a from "@uiw/react-json-view/vscode";
|
|
7
|
+
import { emptyObject as o } from "@plitzi/sdk-shared/helpers/utils";
|
|
8
|
+
//#region src/components/DevToolsPanel/tabs/StoreViewer/StoreViewer.tsx
|
|
9
|
+
var s = {
|
|
10
|
+
...a.vscodeTheme,
|
|
11
|
+
width: "100%",
|
|
12
|
+
height: "100%",
|
|
13
|
+
overflow: "auto",
|
|
14
|
+
padding: "8px",
|
|
15
|
+
fontSize: "14px"
|
|
16
|
+
}, c = ({ elementSelected: a }) => {
|
|
17
|
+
let { getData: c } = e(t), { useStore: l } = n(), [u] = l();
|
|
18
|
+
return /* @__PURE__ */ r("div", {
|
|
19
|
+
className: "flex h-full w-full flex-col",
|
|
20
|
+
children: /* @__PURE__ */ r(i, {
|
|
21
|
+
value: (a ? c?.(`getElementDataSource-${a}`) : u) ?? o,
|
|
22
|
+
style: s,
|
|
23
|
+
enableClipboard: !1,
|
|
24
|
+
indentWidth: 15,
|
|
25
|
+
collapsed: 2,
|
|
26
|
+
displayObjectSize: !1,
|
|
27
|
+
displayDataTypes: !1
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { c as default };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import e from "./VariablesList.mjs";
|
|
2
2
|
import t from "./VariablesStyleList.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import a from "@plitzi/sdk-shared/dataSource/hooks/useDataSource";
|
|
3
|
+
import { createStoreHook as n } from "@plitzi/nexus/createStore";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
5
|
//#region src/components/DevToolsPanel/tabs/VariablesViewer/VariablesViewer.tsx
|
|
7
|
-
var
|
|
8
|
-
let { useStore:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
var a = () => {
|
|
7
|
+
let { useStore: a } = n(), [[o, s, c]] = a([
|
|
8
|
+
"schema.variables",
|
|
9
|
+
"style.variables",
|
|
10
|
+
"runtime.sources.variables"
|
|
11
|
+
]);
|
|
12
|
+
return /* @__PURE__ */ i("div", {
|
|
13
13
|
className: "flex w-full flex-col gap-4 overflow-y-auto p-3",
|
|
14
|
-
children: [/* @__PURE__ */
|
|
14
|
+
children: [/* @__PURE__ */ i("section", {
|
|
15
15
|
className: "flex flex-col gap-1.5",
|
|
16
|
-
children: [/* @__PURE__ */
|
|
16
|
+
children: [/* @__PURE__ */ i("div", {
|
|
17
17
|
className: "flex items-center gap-2 text-[10px] font-semibold tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
18
|
-
children: [/* @__PURE__ */
|
|
19
|
-
}), /* @__PURE__ */
|
|
20
|
-
variables:
|
|
21
|
-
variablesParsed:
|
|
18
|
+
children: [/* @__PURE__ */ r("i", { className: "fa-solid fa-code" }), "Schema Variables"]
|
|
19
|
+
}), /* @__PURE__ */ r(e, {
|
|
20
|
+
variables: o,
|
|
21
|
+
variablesParsed: c
|
|
22
22
|
})]
|
|
23
|
-
}), /* @__PURE__ */
|
|
23
|
+
}), /* @__PURE__ */ i("section", {
|
|
24
24
|
className: "flex flex-col gap-1.5",
|
|
25
|
-
children: [/* @__PURE__ */
|
|
25
|
+
children: [/* @__PURE__ */ i("div", {
|
|
26
26
|
className: "flex items-center gap-2 text-[10px] font-semibold tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
27
|
-
children: [/* @__PURE__ */
|
|
28
|
-
}), /* @__PURE__ */
|
|
27
|
+
children: [/* @__PURE__ */ r("i", { className: "fa-solid fa-palette" }), "Style Variables"]
|
|
28
|
+
}), /* @__PURE__ */ r(t, { variables: s })]
|
|
29
29
|
})]
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
//#endregion
|
|
33
|
-
export {
|
|
33
|
+
export { a as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-dev-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.1",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -94,6 +94,46 @@
|
|
|
94
94
|
"types": "./dist/components/DevToolsPanel/tabs/ElementsViewer/index.d.ts",
|
|
95
95
|
"import": "./dist/components/DevToolsPanel/tabs/ElementsViewer/index.mjs"
|
|
96
96
|
},
|
|
97
|
+
"./components/DevToolsPanel/tabs/HistoryViewer": {
|
|
98
|
+
"types": "./dist/components/DevToolsPanel/tabs/HistoryViewer/index.d.ts",
|
|
99
|
+
"import": "./dist/components/DevToolsPanel/tabs/HistoryViewer/index.mjs"
|
|
100
|
+
},
|
|
101
|
+
"./components/DevToolsPanel/tabs/HistoryViewer/HistoryViewer": {
|
|
102
|
+
"types": "./dist/components/DevToolsPanel/tabs/HistoryViewer/HistoryViewer.d.ts",
|
|
103
|
+
"import": "./dist/components/DevToolsPanel/tabs/HistoryViewer/HistoryViewer.mjs"
|
|
104
|
+
},
|
|
105
|
+
"./components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem": {
|
|
106
|
+
"types": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/index.d.ts",
|
|
107
|
+
"import": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/index.mjs"
|
|
108
|
+
},
|
|
109
|
+
"./components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/HistoryEntryItem": {
|
|
110
|
+
"types": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/HistoryEntryItem.d.ts",
|
|
111
|
+
"import": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/HistoryEntryItem.mjs"
|
|
112
|
+
},
|
|
113
|
+
"./components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/index": {
|
|
114
|
+
"types": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/index.d.ts",
|
|
115
|
+
"import": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/index.mjs"
|
|
116
|
+
},
|
|
117
|
+
"./components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar": {
|
|
118
|
+
"types": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/index.d.ts",
|
|
119
|
+
"import": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/index.mjs"
|
|
120
|
+
},
|
|
121
|
+
"./components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/HistoryToolbar": {
|
|
122
|
+
"types": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/HistoryToolbar.d.ts",
|
|
123
|
+
"import": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/HistoryToolbar.mjs"
|
|
124
|
+
},
|
|
125
|
+
"./components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/index": {
|
|
126
|
+
"types": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/index.d.ts",
|
|
127
|
+
"import": "./dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/index.mjs"
|
|
128
|
+
},
|
|
129
|
+
"./components/DevToolsPanel/tabs/HistoryViewer/helpers": {
|
|
130
|
+
"types": "./dist/components/DevToolsPanel/tabs/HistoryViewer/helpers.d.ts",
|
|
131
|
+
"import": "./dist/components/DevToolsPanel/tabs/HistoryViewer/helpers.mjs"
|
|
132
|
+
},
|
|
133
|
+
"./components/DevToolsPanel/tabs/HistoryViewer/index": {
|
|
134
|
+
"types": "./dist/components/DevToolsPanel/tabs/HistoryViewer/index.d.ts",
|
|
135
|
+
"import": "./dist/components/DevToolsPanel/tabs/HistoryViewer/index.mjs"
|
|
136
|
+
},
|
|
97
137
|
"./components/DevToolsPanel/tabs/Logs": {
|
|
98
138
|
"types": "./dist/components/DevToolsPanel/tabs/Logs/index.d.ts",
|
|
99
139
|
"import": "./dist/components/DevToolsPanel/tabs/Logs/index.mjs"
|
|
@@ -274,6 +314,18 @@
|
|
|
274
314
|
"types": "./dist/components/DevToolsPanel/tabs/PluginsViewer/index.d.ts",
|
|
275
315
|
"import": "./dist/components/DevToolsPanel/tabs/PluginsViewer/index.mjs"
|
|
276
316
|
},
|
|
317
|
+
"./components/DevToolsPanel/tabs/StoreViewer": {
|
|
318
|
+
"types": "./dist/components/DevToolsPanel/tabs/StoreViewer/index.d.ts",
|
|
319
|
+
"import": "./dist/components/DevToolsPanel/tabs/StoreViewer/index.mjs"
|
|
320
|
+
},
|
|
321
|
+
"./components/DevToolsPanel/tabs/StoreViewer/StoreViewer": {
|
|
322
|
+
"types": "./dist/components/DevToolsPanel/tabs/StoreViewer/StoreViewer.d.ts",
|
|
323
|
+
"import": "./dist/components/DevToolsPanel/tabs/StoreViewer/StoreViewer.mjs"
|
|
324
|
+
},
|
|
325
|
+
"./components/DevToolsPanel/tabs/StoreViewer/index": {
|
|
326
|
+
"types": "./dist/components/DevToolsPanel/tabs/StoreViewer/index.d.ts",
|
|
327
|
+
"import": "./dist/components/DevToolsPanel/tabs/StoreViewer/index.mjs"
|
|
328
|
+
},
|
|
277
329
|
"./components/DevToolsPanel/tabs/VariablesViewer": {
|
|
278
330
|
"types": "./dist/components/DevToolsPanel/tabs/VariablesViewer/index.d.ts",
|
|
279
331
|
"import": "./dist/components/DevToolsPanel/tabs/VariablesViewer/index.mjs"
|
|
@@ -334,24 +386,23 @@
|
|
|
334
386
|
"sideEffects": false,
|
|
335
387
|
"devDependencies": {
|
|
336
388
|
"eslint": "^9.39.4",
|
|
337
|
-
"react": "^19.2.
|
|
338
|
-
"react-dom": "^19.2.
|
|
389
|
+
"react": "^19.2.6",
|
|
390
|
+
"react-dom": "^19.2.6",
|
|
339
391
|
"typescript": "^6.0.3",
|
|
340
|
-
"vite": "^8.0.
|
|
392
|
+
"vite": "^8.0.14"
|
|
341
393
|
},
|
|
342
394
|
"peerDependencies": {
|
|
343
395
|
"react": "^19",
|
|
344
396
|
"react-dom": "^19"
|
|
345
397
|
},
|
|
346
398
|
"dependencies": {
|
|
347
|
-
"@plitzi/
|
|
348
|
-
"@plitzi/
|
|
349
|
-
"@plitzi/sdk-navigation": "0.
|
|
350
|
-
"@plitzi/sdk-schema": "0.
|
|
351
|
-
"@plitzi/sdk-shared": "0.
|
|
352
|
-
"@plitzi/sdk-
|
|
353
|
-
"@
|
|
354
|
-
"@uiw/react-json-view": "^2.0.0-alpha.42",
|
|
399
|
+
"@plitzi/nexus": "0.31.1",
|
|
400
|
+
"@plitzi/plitzi-ui": "^1.6.9",
|
|
401
|
+
"@plitzi/sdk-navigation": "0.31.1",
|
|
402
|
+
"@plitzi/sdk-schema": "0.31.1",
|
|
403
|
+
"@plitzi/sdk-shared": "0.31.1",
|
|
404
|
+
"@plitzi/sdk-style": "0.31.1",
|
|
405
|
+
"@uiw/react-json-view": "^2.0.0-alpha.43",
|
|
355
406
|
"clsx": "^2.1.1"
|
|
356
407
|
}
|
|
357
408
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { use as e } from "react";
|
|
2
|
-
import t from "@plitzi/sdk-shared/devTools/DevToolsContext";
|
|
3
|
-
import n from "@uiw/react-json-view";
|
|
4
|
-
import * as r from "@uiw/react-json-view/vscode";
|
|
5
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
-
//#region src/components/DevToolsPanel/tabs/DataSourceViewer/DataSourceViewer.tsx
|
|
7
|
-
var a = {
|
|
8
|
-
...r.vscodeTheme,
|
|
9
|
-
width: "100%",
|
|
10
|
-
height: "100%",
|
|
11
|
-
overflow: "auto",
|
|
12
|
-
padding: "8px",
|
|
13
|
-
fontSize: "14px"
|
|
14
|
-
}, o = ({ elementSelected: r }) => {
|
|
15
|
-
let { getData: o } = e(t);
|
|
16
|
-
return /* @__PURE__ */ i("div", {
|
|
17
|
-
className: "flex h-full w-full flex-col",
|
|
18
|
-
children: /* @__PURE__ */ i(n, {
|
|
19
|
-
value: r ? o?.(`getElementDataSource-${r}`) : {},
|
|
20
|
-
style: a,
|
|
21
|
-
enableClipboard: !1,
|
|
22
|
-
indentWidth: 15,
|
|
23
|
-
collapsed: 2,
|
|
24
|
-
displayObjectSize: !1,
|
|
25
|
-
displayDataTypes: !1
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
export { o as default };
|