@plitzi/sdk-dev-tools 0.38.16 → 0.38.17
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 +45 -0
- package/dist/DevToolsContainer.mjs +2 -2
- package/dist/DevToolsContextProvider.mjs +6 -7
- package/dist/DevToolsRoot.mjs +14 -14
- package/dist/agentInspector/inspector.mjs +1 -1
- package/dist/agentInspector/report.mjs +1 -1
- package/dist/agentInspector/useAgentInspector.mjs +4 -4
- package/dist/components/DevToolsIndicator/DevToolsIndicator.mjs +2 -11
- package/dist/components/DevToolsPanel/DevToolsBody.mjs +1 -1
- package/dist/components/DevToolsPanel/DevToolsPanel.mjs +1 -1
- package/dist/components/DevToolsPanel/DevToolsSubHeader.mjs +11 -11
- package/dist/components/DevToolsPanel/ThemeControl.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/components/ElementDetails/ElementDetails.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/helpers/renderTree.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/FlagsViewer/FlagSource.d.ts +1 -1
- package/dist/components/DevToolsPanel/tabs/FlagsViewer/FlagsListItem.d.ts +2 -1
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryEntryItem/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/HistoryViewer/components/HistoryToolbar/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyHeader.mjs +33 -33
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTree.mjs +12 -12
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/InteractionNode.mjs +8 -8
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeMetadata.mjs +7 -7
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteraction.mjs +15 -15
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.mjs +26 -26
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationHeader.mjs +7 -7
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreHeader.mjs +8 -8
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginDetails.mjs +21 -21
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginsViewer.mjs +2 -2
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaReplayButton.mjs +1 -1
- package/dist/components/DevToolsPanel/tabs/QaViewer/QaRuleItem.mjs +10 -10
- package/dist/components/DevToolsPanel/tabs/StoreViewer/StoreViewer.mjs +17 -17
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/CommitCause/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/CommitStrip/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/DetailSidebar/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/DurationLegend/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/Flamegraph/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/HotspotSidebar/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/HotspotsList/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/MetricToggle/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/RankedList/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/SidebarShell/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/SidebarToggle/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/components/TracingToolbar/index.mjs +1 -2
- package/dist/components/DevToolsPanel/tabs/TracingViewer/index.mjs +1 -2
- package/dist/components/PayloadView/PayloadView.mjs +1 -1
- package/dist/qa/QaLayer.mjs +1 -1
- package/package.json +16 -1194
package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteraction.mjs
CHANGED
|
@@ -5,12 +5,12 @@ import r from "./LogInteractionNote.mjs";
|
|
|
5
5
|
import i from "clsx";
|
|
6
6
|
import { useMemo as a } from "react";
|
|
7
7
|
import { isInteractionFlow as o } from "@plitzi/sdk-shared/devTools";
|
|
8
|
-
import {
|
|
9
|
-
import l from "
|
|
10
|
-
import
|
|
8
|
+
import { getDurationMs as s } from "@plitzi/sdk-shared/helpers";
|
|
9
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
import u from "@plitzi/plitzi-ui/ContainerCollapsable";
|
|
11
11
|
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteraction.tsx
|
|
12
|
-
var d = /* @__PURE__ */
|
|
13
|
-
let b = a(() => `${
|
|
12
|
+
var d = /* @__PURE__ */ c("i", { className: "fa-solid fa-angle-right text-[10px]" }), f = /* @__PURE__ */ c("i", { className: "fa-solid fa-angle-down text-[10px]" }), p = ({ time: r, message: o, params: { elementId: p, hostElementId: m, status: h, node: g, nodes: _, startTime: v = 0, endTime: y = 0 } }) => {
|
|
13
|
+
let b = a(() => `${s(v, y)}ms`, [v, y]), { failed: x, skipped: S, disabled: C } = a(() => {
|
|
14
14
|
let e = Object.values(_).map(({ status: e }) => e);
|
|
15
15
|
return {
|
|
16
16
|
failed: e.filter((e) => e === "failed").length,
|
|
@@ -18,15 +18,15 @@ var d = /* @__PURE__ */ s("i", { className: "fa-solid fa-angle-right text-[10px]
|
|
|
18
18
|
disabled: e.filter((e) => e === "disabled").length
|
|
19
19
|
};
|
|
20
20
|
}, [_]);
|
|
21
|
-
return /* @__PURE__ */
|
|
21
|
+
return /* @__PURE__ */ l(u, {
|
|
22
22
|
className: i("last:border-b-none w-full border-b border-l-2 border-b-zinc-200 px-2 py-1 transition-colors hover:bg-zinc-50 dark:border-b-zinc-700 dark:hover:bg-zinc-800/50", {
|
|
23
23
|
"border-l-emerald-500": h === "completed",
|
|
24
24
|
"border-l-red-500": h === "failed",
|
|
25
25
|
"border-l-zinc-300 dark:border-l-zinc-600": h === "skipped"
|
|
26
26
|
}),
|
|
27
27
|
collapsed: !0,
|
|
28
|
-
children: [/* @__PURE__ */
|
|
29
|
-
title: /* @__PURE__ */
|
|
28
|
+
children: [/* @__PURE__ */ c(u.Header, {
|
|
29
|
+
title: /* @__PURE__ */ c(n, {
|
|
30
30
|
status: h,
|
|
31
31
|
message: o,
|
|
32
32
|
time: r
|
|
@@ -35,20 +35,20 @@ var d = /* @__PURE__ */ s("i", { className: "fa-solid fa-angle-right text-[10px]
|
|
|
35
35
|
className: { headerTitle: "overflow-hidden" },
|
|
36
36
|
iconCollapsed: d,
|
|
37
37
|
iconExpanded: f,
|
|
38
|
-
children: /* @__PURE__ */
|
|
38
|
+
children: /* @__PURE__ */ l("div", {
|
|
39
39
|
className: "flex gap-3 text-zinc-400 dark:text-zinc-500",
|
|
40
40
|
children: [
|
|
41
|
-
!!x && /* @__PURE__ */
|
|
41
|
+
!!x && /* @__PURE__ */ c(e, {
|
|
42
42
|
logType: "danger",
|
|
43
43
|
title: "Failed",
|
|
44
44
|
children: x
|
|
45
45
|
}),
|
|
46
|
-
h !== "skipped" && !!S && /* @__PURE__ */
|
|
46
|
+
h !== "skipped" && !!S && /* @__PURE__ */ c(e, {
|
|
47
47
|
logType: "warning",
|
|
48
48
|
title: "Skipped",
|
|
49
49
|
children: S
|
|
50
50
|
}),
|
|
51
|
-
h !== "skipped" && !!C && /* @__PURE__ */
|
|
51
|
+
h !== "skipped" && !!C && /* @__PURE__ */ c(e, {
|
|
52
52
|
logType: "custom",
|
|
53
53
|
iconClassName: "fa-solid fa-ban",
|
|
54
54
|
title: "Disabled",
|
|
@@ -57,7 +57,7 @@ var d = /* @__PURE__ */ s("i", { className: "fa-solid fa-angle-right text-[10px]
|
|
|
57
57
|
b
|
|
58
58
|
]
|
|
59
59
|
})
|
|
60
|
-
}), /* @__PURE__ */
|
|
60
|
+
}), /* @__PURE__ */ c(u.Content, { children: /* @__PURE__ */ c(t, {
|
|
61
61
|
elementId: p,
|
|
62
62
|
hostElementId: m,
|
|
63
63
|
node: g,
|
|
@@ -67,11 +67,11 @@ var d = /* @__PURE__ */ s("i", { className: "fa-solid fa-angle-right text-[10px]
|
|
|
67
67
|
duration: b
|
|
68
68
|
}) })]
|
|
69
69
|
});
|
|
70
|
-
}, m = ({ time: e, message: t, params: n }) => o(n) ? /* @__PURE__ */
|
|
70
|
+
}, m = ({ time: e, message: t, params: n }) => o(n) ? /* @__PURE__ */ c(p, {
|
|
71
71
|
time: e,
|
|
72
72
|
message: t,
|
|
73
73
|
params: n
|
|
74
|
-
}) : /* @__PURE__ */
|
|
74
|
+
}) : /* @__PURE__ */ c(r, {
|
|
75
75
|
time: e,
|
|
76
76
|
message: t,
|
|
77
77
|
params: n
|
package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.mjs
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { useMemo as e } from "react";
|
|
2
2
|
import { useCommonStore as t } from "@plitzi/sdk-shared/store";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { formatDate as n } from "@plitzi/sdk-shared/helpers";
|
|
4
|
+
import { get as r } from "@plitzi/plitzi-ui/helpers";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
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] = t("schema.flat"), d = e(() => o ?
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
let [u] = t("schema.flat"), d = e(() => o ? r(u, o) : void 0, [o, u]);
|
|
9
|
+
return /* @__PURE__ */ a("div", {
|
|
10
10
|
className: "m-2 flex justify-around gap-4",
|
|
11
11
|
children: [
|
|
12
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ a("div", {
|
|
13
13
|
className: "flex min-w-0 grow basis-0 flex-col gap-2",
|
|
14
|
-
children: [/* @__PURE__ */
|
|
14
|
+
children: [/* @__PURE__ */ a("div", {
|
|
15
15
|
className: "flex items-center gap-1 font-bold",
|
|
16
|
-
children: [/* @__PURE__ */
|
|
17
|
-
}), /* @__PURE__ */
|
|
16
|
+
children: [/* @__PURE__ */ i("i", { className: "fa-regular fa-clock" }), "Times"]
|
|
17
|
+
}), /* @__PURE__ */ a("div", {
|
|
18
18
|
className: "flex flex-col",
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ a("div", {
|
|
21
21
|
className: "flex gap-1",
|
|
22
|
-
children: [/* @__PURE__ */
|
|
22
|
+
children: [/* @__PURE__ */ i("span", { children: "Started:" }), typeof s == "string" ? s : n(s)]
|
|
23
23
|
}),
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ a("div", {
|
|
25
25
|
className: "flex gap-1",
|
|
26
|
-
children: [/* @__PURE__ */
|
|
26
|
+
children: [/* @__PURE__ */ i("span", { children: "End:" }), typeof c == "string" ? c : n(c)]
|
|
27
27
|
}),
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ a("div", {
|
|
29
29
|
className: "flex gap-1",
|
|
30
|
-
children: [/* @__PURE__ */
|
|
30
|
+
children: [/* @__PURE__ */ i("span", { children: "Duration:" }), l]
|
|
31
31
|
})
|
|
32
32
|
]
|
|
33
33
|
})]
|
|
34
34
|
}),
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ i("div", { className: "border-r border-gray-300" }),
|
|
36
|
+
/* @__PURE__ */ a("div", {
|
|
37
37
|
className: "flex min-w-0 grow basis-0 flex-col gap-2",
|
|
38
|
-
children: [/* @__PURE__ */
|
|
38
|
+
children: [/* @__PURE__ */ a("div", {
|
|
39
39
|
className: "flex items-center gap-1",
|
|
40
|
-
children: [/* @__PURE__ */
|
|
41
|
-
}), /* @__PURE__ */
|
|
40
|
+
children: [/* @__PURE__ */ i("i", { className: "fa-solid fa-circle-info" }), "Details"]
|
|
41
|
+
}), /* @__PURE__ */ a("div", {
|
|
42
42
|
className: "flex flex-col",
|
|
43
43
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ a("div", {
|
|
45
45
|
className: "flex gap-1",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
46
|
+
children: [/* @__PURE__ */ i("span", { children: "Type:" }), /* @__PURE__ */ i("span", { children: "Navigation" })]
|
|
47
47
|
}),
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ a("div", {
|
|
49
49
|
className: "flex gap-1",
|
|
50
|
-
children: [/* @__PURE__ */
|
|
50
|
+
children: [/* @__PURE__ */ i("span", { children: "Trigger:" }), /* @__PURE__ */ i("span", {
|
|
51
51
|
className: "truncate",
|
|
52
52
|
children: "-"
|
|
53
53
|
})]
|
|
54
54
|
}),
|
|
55
|
-
d && /* @__PURE__ */
|
|
55
|
+
d && /* @__PURE__ */ a("div", {
|
|
56
56
|
className: "flex gap-1",
|
|
57
|
-
children: [/* @__PURE__ */
|
|
57
|
+
children: [/* @__PURE__ */ i("span", { children: "Element:" }), /* @__PURE__ */ a("span", {
|
|
58
58
|
className: "cursor-pointer truncate text-blue-500",
|
|
59
59
|
children: [
|
|
60
60
|
d.definition.label,
|
package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationHeader.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../LogStatus.mjs";
|
|
2
2
|
import { useMemo as t } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { formatDate as n } from "@plitzi/sdk-shared/helpers";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationHeader.tsx
|
|
6
6
|
var a = ({ status: a, message: o, time: s }) => {
|
|
7
7
|
let { logType: c, statusMessage: l } = t(() => a === "normal" ? {
|
|
@@ -20,18 +20,18 @@ var a = ({ status: a, message: o, time: s }) => {
|
|
|
20
20
|
logType: "custom",
|
|
21
21
|
statusMessage: ""
|
|
22
22
|
}, [a]);
|
|
23
|
-
return /* @__PURE__ */
|
|
23
|
+
return /* @__PURE__ */ i("div", {
|
|
24
24
|
className: "flex w-full items-center gap-2 overflow-hidden",
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ r("span", {
|
|
27
27
|
className: "shrink-0 font-mono text-zinc-400 tabular-nums dark:text-zinc-500",
|
|
28
|
-
children: typeof s == "string" ? s :
|
|
28
|
+
children: typeof s == "string" ? s : n(s)
|
|
29
29
|
}),
|
|
30
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ r(e, {
|
|
31
31
|
logType: c,
|
|
32
32
|
children: l
|
|
33
33
|
}),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ r("div", {
|
|
35
35
|
className: "grow basis-0 truncate text-zinc-700 dark:text-zinc-300",
|
|
36
36
|
children: o
|
|
37
37
|
})
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import e from "../../LogStatus.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { formatDate as t } from "@plitzi/sdk-shared/helpers";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreHeader.tsx
|
|
5
|
-
var i = ({ storeName: i, path: a, message: o, time: s }) => /* @__PURE__ */
|
|
5
|
+
var i = ({ storeName: i, path: a, message: o, time: s }) => /* @__PURE__ */ r("div", {
|
|
6
6
|
className: "flex w-full items-center gap-2 overflow-hidden",
|
|
7
7
|
children: [
|
|
8
|
-
/* @__PURE__ */
|
|
8
|
+
/* @__PURE__ */ n("span", {
|
|
9
9
|
className: "shrink-0 font-mono text-zinc-400 tabular-nums dark:text-zinc-500",
|
|
10
|
-
children: typeof s == "string" ? s :
|
|
10
|
+
children: typeof s == "string" ? s : t(s)
|
|
11
11
|
}),
|
|
12
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ n(e, {
|
|
13
13
|
logType: "info",
|
|
14
14
|
children: "Store"
|
|
15
15
|
}),
|
|
16
|
-
i && /* @__PURE__ */
|
|
16
|
+
i && /* @__PURE__ */ n("span", {
|
|
17
17
|
className: "shrink-0 font-semibold text-zinc-700 dark:text-zinc-200",
|
|
18
18
|
children: i
|
|
19
19
|
}),
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ n("span", {
|
|
21
21
|
className: "truncate font-mono text-zinc-400 dark:text-zinc-500",
|
|
22
22
|
children: a ?? o ?? "(full state)"
|
|
23
23
|
})
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./LogStore.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo as e } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import r from "
|
|
2
|
+
import { syntaxHighlight as t } from "@plitzi/sdk-shared/helpers";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/DevToolsPanel/tabs/PluginsViewer/PluginDetails.tsx
|
|
5
5
|
var i = {
|
|
6
6
|
"local-custom": {
|
|
@@ -12,60 +12,60 @@ var i = {
|
|
|
12
12
|
hint: "A published bundle, described by the manifest it was published with."
|
|
13
13
|
}
|
|
14
14
|
}, a = ({ entry: a }) => {
|
|
15
|
-
let { type: o, origin: s, version: c, author: l, settings: u } = a, d = e(() => !u || Object.keys(u).length === 0 ? null :
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
let { type: o, origin: s, version: c, author: l, settings: u } = a, d = e(() => !u || Object.keys(u).length === 0 ? null : t(JSON.stringify(u, null, 2)), [u]);
|
|
16
|
+
return /* @__PURE__ */ r("div", {
|
|
17
17
|
className: "flex h-full grow basis-0 flex-col overflow-y-auto p-4",
|
|
18
|
-
children: [/* @__PURE__ */
|
|
18
|
+
children: [/* @__PURE__ */ r("div", {
|
|
19
19
|
className: "mb-4 border-b border-zinc-200 pb-3 dark:border-zinc-700",
|
|
20
|
-
children: [/* @__PURE__ */
|
|
20
|
+
children: [/* @__PURE__ */ n("div", {
|
|
21
21
|
className: "text-base font-semibold text-zinc-800 dark:text-zinc-200",
|
|
22
22
|
children: o
|
|
23
|
-
}), /* @__PURE__ */
|
|
23
|
+
}), /* @__PURE__ */ n("div", {
|
|
24
24
|
className: "text-xs text-zinc-400 dark:text-zinc-500",
|
|
25
25
|
children: i[s].label
|
|
26
26
|
})]
|
|
27
|
-
}), /* @__PURE__ */
|
|
27
|
+
}), /* @__PURE__ */ r("div", {
|
|
28
28
|
className: "flex flex-col gap-3",
|
|
29
29
|
children: [
|
|
30
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ r("div", {
|
|
31
31
|
className: "flex flex-col gap-0.5",
|
|
32
|
-
children: [/* @__PURE__ */
|
|
32
|
+
children: [/* @__PURE__ */ n("span", {
|
|
33
33
|
className: "text-xs font-medium tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
34
34
|
children: "Where it comes from"
|
|
35
|
-
}), /* @__PURE__ */
|
|
35
|
+
}), /* @__PURE__ */ n("span", {
|
|
36
36
|
className: "text-xs text-zinc-800 dark:text-zinc-200",
|
|
37
37
|
children: i[s].hint
|
|
38
38
|
})]
|
|
39
39
|
}),
|
|
40
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ r("div", {
|
|
41
41
|
className: "flex flex-col gap-0.5",
|
|
42
|
-
children: [/* @__PURE__ */
|
|
42
|
+
children: [/* @__PURE__ */ n("span", {
|
|
43
43
|
className: "text-xs font-medium tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
44
44
|
children: "Version"
|
|
45
|
-
}), /* @__PURE__ */
|
|
45
|
+
}), /* @__PURE__ */ n("span", {
|
|
46
46
|
className: "font-mono text-xs text-zinc-800 dark:text-zinc-200",
|
|
47
47
|
children: c ?? "—"
|
|
48
48
|
})]
|
|
49
49
|
}),
|
|
50
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ r("div", {
|
|
51
51
|
className: "flex flex-col gap-0.5",
|
|
52
|
-
children: [/* @__PURE__ */
|
|
52
|
+
children: [/* @__PURE__ */ n("span", {
|
|
53
53
|
className: "text-xs font-medium tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
54
54
|
children: "Author"
|
|
55
|
-
}), /* @__PURE__ */
|
|
55
|
+
}), /* @__PURE__ */ n("span", {
|
|
56
56
|
className: "text-xs text-zinc-800 dark:text-zinc-200",
|
|
57
57
|
children: l ?? "—"
|
|
58
58
|
})]
|
|
59
59
|
}),
|
|
60
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ r("div", {
|
|
61
61
|
className: "flex flex-col gap-1",
|
|
62
|
-
children: [/* @__PURE__ */
|
|
62
|
+
children: [/* @__PURE__ */ n("span", {
|
|
63
63
|
className: "text-xs font-medium tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
64
64
|
children: "Settings"
|
|
65
|
-
}), d ? /* @__PURE__ */
|
|
65
|
+
}), d ? /* @__PURE__ */ n("pre", {
|
|
66
66
|
className: "overflow-auto rounded bg-zinc-50 p-2 font-mono text-xs leading-5 dark:bg-zinc-800",
|
|
67
67
|
dangerouslySetInnerHTML: { __html: d }
|
|
68
|
-
}) : /* @__PURE__ */
|
|
68
|
+
}) : /* @__PURE__ */ n("span", {
|
|
69
69
|
className: "text-xs text-zinc-400 italic dark:text-zinc-500",
|
|
70
70
|
children: "No settings"
|
|
71
71
|
})]
|
|
@@ -3,8 +3,8 @@ import t from "../../../List/index.mjs";
|
|
|
3
3
|
import n from "clsx";
|
|
4
4
|
import { use as r, useCallback as i, useMemo as a, useState as o } from "react";
|
|
5
5
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
-
import l from "@plitzi/sdk-shared/elements
|
|
7
|
-
import u from "@plitzi/sdk-shared/plugins
|
|
6
|
+
import { ComponentContext as l } from "@plitzi/sdk-shared/elements";
|
|
7
|
+
import { PluginsContext as u } from "@plitzi/sdk-shared/plugins";
|
|
8
8
|
//#region src/components/DevToolsPanel/tabs/PluginsViewer/PluginsViewer.tsx
|
|
9
9
|
var d = {
|
|
10
10
|
"local-custom": "Shipped with this space",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../../../qa/QaContext.mjs";
|
|
2
2
|
import { use as t, useCallback as n } from "react";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
import { isMotionAnimation as a } from "@plitzi/sdk-shared/schema
|
|
4
|
+
import { isMotionAnimation as a } from "@plitzi/sdk-shared/schema";
|
|
5
5
|
//#region src/components/DevToolsPanel/tabs/QaViewer/QaReplayButton.tsx
|
|
6
6
|
var o = () => {
|
|
7
7
|
let { pageRef: o } = t(e), s = n(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback as e, useState as t } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { NOT_COPIED_REASON as n, copyText as r } from "@plitzi/sdk-shared/helpers";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/DevToolsPanel/tabs/QaViewer/QaRuleItem.tsx
|
|
5
5
|
var o = 1200, s = {
|
|
6
6
|
idle: "Copy",
|
|
@@ -8,33 +8,33 @@ var o = 1200, s = {
|
|
|
8
8
|
refused: "Not copied"
|
|
9
9
|
}, c = ({ rule: { selector: c, declarations: l, media: u } }) => {
|
|
10
10
|
let [d, f] = t("idle"), p = e(() => {
|
|
11
|
-
|
|
11
|
+
r(`${c} { ${l} }`).then((e) => {
|
|
12
12
|
f(e ? "copied" : "refused"), setTimeout(() => f("idle"), o);
|
|
13
13
|
});
|
|
14
14
|
}, [c, l]);
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ a("div", {
|
|
16
16
|
className: "group border-b border-zinc-100 px-2.5 py-1.5 last:border-b-0 dark:border-zinc-800",
|
|
17
|
-
children: [/* @__PURE__ */
|
|
17
|
+
children: [/* @__PURE__ */ a("div", {
|
|
18
18
|
className: "flex items-center gap-2",
|
|
19
19
|
children: [
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ i("span", {
|
|
21
21
|
className: "min-w-0 truncate font-mono text-violet-700 dark:text-violet-300",
|
|
22
22
|
title: c,
|
|
23
23
|
children: c
|
|
24
24
|
}),
|
|
25
|
-
u && /* @__PURE__ */
|
|
25
|
+
u && /* @__PURE__ */ a("span", {
|
|
26
26
|
className: "shrink-0 font-mono text-[10px] text-amber-600 dark:text-amber-400",
|
|
27
27
|
children: ["@media ", u]
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ i("button", {
|
|
30
30
|
type: "button",
|
|
31
31
|
className: "ml-auto shrink-0 rounded px-1 text-[10px] text-zinc-400 opacity-0 group-hover:opacity-100 hover:bg-zinc-100 hover:text-zinc-700 dark:hover:bg-zinc-800 dark:hover:text-zinc-200",
|
|
32
32
|
onClick: p,
|
|
33
|
-
title: d === "refused" ?
|
|
33
|
+
title: d === "refused" ? n : void 0,
|
|
34
34
|
children: s[d]
|
|
35
35
|
})
|
|
36
36
|
]
|
|
37
|
-
}), /* @__PURE__ */
|
|
37
|
+
}), /* @__PURE__ */ i("div", {
|
|
38
38
|
className: "mt-0.5 font-mono text-[11px] leading-relaxed break-words text-zinc-600 dark:text-zinc-400",
|
|
39
39
|
children: l
|
|
40
40
|
})]
|
|
@@ -8,53 +8,53 @@ import s from "../../../../scope/useStoreState.mjs";
|
|
|
8
8
|
import c from "@plitzi/plitzi-ui/hooks/useStorage";
|
|
9
9
|
import l from "clsx";
|
|
10
10
|
import { use as u, useCallback as d, useMemo as f } from "react";
|
|
11
|
-
import p from "@plitzi/sdk-shared/
|
|
12
|
-
import m from "@plitzi/sdk-shared/
|
|
13
|
-
import {
|
|
14
|
-
import _ from "
|
|
15
|
-
import
|
|
16
|
-
import
|
|
11
|
+
import { DevToolsContext as p } from "@plitzi/sdk-shared/devTools";
|
|
12
|
+
import { useTheme as m } from "@plitzi/sdk-shared/theme";
|
|
13
|
+
import { emptyObject as h } from "@plitzi/sdk-shared/helpers";
|
|
14
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
15
|
+
import v from "@uiw/react-json-view";
|
|
16
|
+
import * as y from "@uiw/react-json-view/vscode";
|
|
17
17
|
//#region src/components/DevToolsPanel/tabs/StoreViewer/StoreViewer.tsx
|
|
18
18
|
var b = {
|
|
19
|
-
...
|
|
19
|
+
...y.vscodeTheme,
|
|
20
20
|
width: "100%",
|
|
21
21
|
height: "100%",
|
|
22
22
|
overflow: "auto",
|
|
23
23
|
padding: "8px",
|
|
24
24
|
fontSize: "14px"
|
|
25
25
|
}, x = (e) => l("cursor-pointer rounded px-2 py-0.5 font-medium transition-colors", e ? "bg-violet-500/15 text-violet-600 dark:text-violet-300" : "text-zinc-500 hover:bg-zinc-200/70 hover:text-zinc-800 dark:text-zinc-400 dark:hover:bg-zinc-700/50 dark:hover:text-zinc-100"), S = {}, C = [], w = ({ elementSelected: l }) => {
|
|
26
|
-
let { resolvedTheme:
|
|
27
|
-
return /* @__PURE__ */
|
|
26
|
+
let { resolvedTheme: y } = m(), { getData: w } = u(p), T = r(), E = n(), [D, O] = c("plitzi-sdk.dev-tools.store.view", "own"), k = s(l ? void 0 : E, D === "merged"), A = d(() => O("own"), [O]), j = d(() => O("merged"), [O]), M = l ? w?.(`getElementDataSource-${l}`) : k, N = f(() => i(M), [M]), P = f(() => T ? [T] : C, [T]), F = e(P)[0]?.records ?? S, I = f(() => Object.values(F).reduce((e, t) => Math.max(e, t.updatedAt), 0), [F]), L = t(Object.keys(F).length > 0, I), R = f(() => a(F, L), [F, L]);
|
|
27
|
+
return /* @__PURE__ */ _("div", {
|
|
28
28
|
className: "flex h-full w-full flex-col",
|
|
29
|
-
children: [!l && /* @__PURE__ */
|
|
29
|
+
children: [!l && /* @__PURE__ */ _("div", {
|
|
30
30
|
className: "flex shrink-0 items-center gap-1 border-b border-zinc-200 px-2 py-1 text-[11px] dark:border-zinc-800",
|
|
31
31
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ g("span", {
|
|
33
33
|
className: "mr-1 text-zinc-400 dark:text-zinc-500",
|
|
34
34
|
children: "View"
|
|
35
35
|
}),
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ g("button", {
|
|
37
37
|
className: x(D === "own"),
|
|
38
38
|
onClick: A,
|
|
39
39
|
title: "Only this scope's own layer",
|
|
40
40
|
children: "Own"
|
|
41
41
|
}),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ g("button", {
|
|
43
43
|
className: x(D === "merged"),
|
|
44
44
|
onClick: j,
|
|
45
45
|
title: "Own layer merged over the parent scope chain",
|
|
46
46
|
children: "Merged"
|
|
47
47
|
})
|
|
48
48
|
]
|
|
49
|
-
}), /* @__PURE__ */
|
|
50
|
-
value: N ??
|
|
51
|
-
style:
|
|
49
|
+
}), /* @__PURE__ */ _(v, {
|
|
50
|
+
value: N ?? h,
|
|
51
|
+
style: y === "dark" ? b : void 0,
|
|
52
52
|
enableClipboard: !1,
|
|
53
53
|
indentWidth: 15,
|
|
54
54
|
collapsed: 2,
|
|
55
55
|
displayObjectSize: !1,
|
|
56
56
|
displayDataTypes: !1,
|
|
57
|
-
children: [/* @__PURE__ */
|
|
57
|
+
children: [/* @__PURE__ */ g(v.String, { render: o }), /* @__PURE__ */ g(v.KeyName, { render: R })]
|
|
58
58
|
})]
|
|
59
59
|
});
|
|
60
60
|
};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./CommitCause.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./CommitStrip.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./DetailSidebar.mjs";
|
package/dist/components/DevToolsPanel/tabs/TracingViewer/components/DurationLegend/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./DurationLegend.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./Flamegraph.mjs";
|
package/dist/components/DevToolsPanel/tabs/TracingViewer/components/HotspotSidebar/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./HotspotSidebar.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./HotspotsList.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./MetricToggle.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./RankedList.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./SidebarShell.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./SidebarToggle.mjs";
|
package/dist/components/DevToolsPanel/tabs/TracingViewer/components/TracingToolbar/index.mjs
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./TracingToolbar.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./TracingViewer.mjs";
|
package/dist/qa/QaLayer.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import y from "./usePageBox.mjs";
|
|
|
13
13
|
import { use as b, useEffect as x, useMemo as S } from "react";
|
|
14
14
|
import { useCommonStore as C } from "@plitzi/sdk-shared/store";
|
|
15
15
|
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
16
|
-
import { treeOf as D } from "@plitzi/sdk-schema
|
|
16
|
+
import { treeOf as D } from "@plitzi/sdk-schema";
|
|
17
17
|
//#region src/qa/QaLayer.tsx
|
|
18
18
|
var O = "http://www.w3.org/2000/svg", k = 250, A = 1e3, j = 200, M = .25, N = () => {
|
|
19
19
|
let { settings: N, pageRef: P, round: F, setFindings: I, setXrayCounts: L } = b(l), [[R, z, B]] = C([
|