@plitzi/sdk-dev-tools 0.30.19
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 +1406 -0
- package/dist/DevToolsContainer.d.ts +13 -0
- package/dist/DevToolsContainer.mjs +34 -0
- package/dist/DevToolsContextProvider.d.ts +6 -0
- package/dist/DevToolsContextProvider.mjs +46 -0
- package/dist/components/DevToolsPanel/DevToolsBody.d.ts +9 -0
- package/dist/components/DevToolsPanel/DevToolsBody.mjs +35 -0
- package/dist/components/DevToolsPanel/DevToolsButton.d.ts +10 -0
- package/dist/components/DevToolsPanel/DevToolsButton.mjs +14 -0
- package/dist/components/DevToolsPanel/DevToolsHeader.d.ts +10 -0
- package/dist/components/DevToolsPanel/DevToolsHeader.mjs +62 -0
- package/dist/components/DevToolsPanel/DevToolsPanel.d.ts +10 -0
- package/dist/components/DevToolsPanel/DevToolsPanel.mjs +48 -0
- package/dist/components/DevToolsPanel/DevToolsSubHeader.d.ts +10 -0
- package/dist/components/DevToolsPanel/DevToolsSubHeader.mjs +62 -0
- package/dist/components/DevToolsPanel/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/DataSourceViewer/DataSourceViewer.d.ts +5 -0
- package/dist/components/DevToolsPanel/tabs/DataSourceViewer/DataSourceViewer.mjs +30 -0
- package/dist/components/DevToolsPanel/tabs/DataSourceViewer/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/DataSourceViewer/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsAttributes.d.ts +6 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsAttributes.mjs +19 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsDefinition.d.ts +7 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsDefinition.mjs +20 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsValue.d.ts +10 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsValue.mjs +31 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementDetails.d.ts +8 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementDetails.mjs +21 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsList.d.ts +8 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsList.mjs +35 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsListItem.d.ts +9 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsListItem.mjs +24 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsViewer.d.ts +7 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsViewer.mjs +25 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/ElementsViewer/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/Logs/Log.d.ts +11 -0
- package/dist/components/DevToolsPanel/tabs/Logs/Log.mjs +24 -0
- package/dist/components/DevToolsPanel/tabs/Logs/LogStatus.d.ts +10 -0
- package/dist/components/DevToolsPanel/tabs/Logs/LogStatus.mjs +30 -0
- package/dist/components/DevToolsPanel/tabs/Logs/LogStatusIcon.d.ts +11 -0
- package/dist/components/DevToolsPanel/tabs/Logs/LogStatusIcon.mjs +24 -0
- package/dist/components/DevToolsPanel/tabs/Logs/Logs.d.ts +10 -0
- package/dist/components/DevToolsPanel/tabs/Logs/Logs.mjs +61 -0
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummary.d.ts +11 -0
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummary.mjs +47 -0
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummaryItem.d.ts +11 -0
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummaryItem.mjs +35 -0
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyContent.d.ts +8 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyContent.mjs +38 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyHeader.d.ts +11 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyHeader.mjs +109 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTree.d.ts +11 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTree.mjs +45 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTreeNode.d.ts +13 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTreeNode.mjs +40 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/InteractionNode.d.ts +14 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/InteractionNode.mjs +32 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeHeader.d.ts +9 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeHeader.mjs +49 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeMetadata.d.ts +8 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeMetadata.mjs +20 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeWhen.d.ts +6 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeWhen.mjs +19 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteraction.d.ts +10 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteraction.mjs +56 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionBody.d.ts +12 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionBody.mjs +26 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionHeader.d.ts +9 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionHeader.mjs +27 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigation.d.ts +10 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigation.mjs +36 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.d.ts +9 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.mjs +74 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationHeader.d.ts +10 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationHeader.mjs +42 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStore.d.ts +9 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStore.mjs +30 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreBody.d.ts +26 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreBody.mjs +113 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreHeader.d.ts +9 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreHeader.mjs +27 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildDiff.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildDiff.mjs +20 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildHunks.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildHunks.mjs +14 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildSections.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildSections.mjs +30 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/serialize.d.ts +2 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/serialize.mjs +12 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/index.d.ts +1 -0
- package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/index.mjs +2 -0
- package/dist/components/DevToolsPanel/tabs/Logs/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/Logs/index.mjs +5 -0
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginDetails.d.ts +8 -0
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginDetails.mjs +59 -0
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginsViewer.d.ts +5 -0
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginsViewer.mjs +46 -0
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/index.d.ts +6 -0
- package/dist/components/DevToolsPanel/tabs/PluginsViewer/index.mjs +6 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariableValue.d.ts +8 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariableValue.mjs +27 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesList.d.ts +7 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesList.mjs +25 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesListItem.d.ts +8 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesListItem.mjs +29 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesStyleList.d.ts +6 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesStyleList.mjs +38 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesViewer.d.ts +2 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesViewer.mjs +33 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/index.d.ts +3 -0
- package/dist/components/DevToolsPanel/tabs/VariablesViewer/index.mjs +5 -0
- package/dist/components/List/List.d.ts +14 -0
- package/dist/components/List/List.mjs +35 -0
- package/dist/components/List/ListItem.d.ts +11 -0
- package/dist/components/List/ListItem.mjs +21 -0
- package/dist/components/List/index.d.ts +6 -0
- package/dist/components/List/index.mjs +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +3 -0
- package/package.json +357 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type DiffLine = {
|
|
2
|
+
type: 'same' | 'added' | 'removed';
|
|
3
|
+
text: string;
|
|
4
|
+
};
|
|
5
|
+
export type Hunk = {
|
|
6
|
+
start: number;
|
|
7
|
+
end: number;
|
|
8
|
+
};
|
|
9
|
+
export type Section = {
|
|
10
|
+
kind: 'line';
|
|
11
|
+
line: DiffLine;
|
|
12
|
+
diffIndex: number;
|
|
13
|
+
hunkIndex: number | null;
|
|
14
|
+
} | {
|
|
15
|
+
kind: 'separator';
|
|
16
|
+
hunkIndex: number;
|
|
17
|
+
total: number;
|
|
18
|
+
};
|
|
19
|
+
export type LogStoreBodyProps = {
|
|
20
|
+
path?: string;
|
|
21
|
+
prev?: unknown;
|
|
22
|
+
next?: unknown;
|
|
23
|
+
contextLines?: number;
|
|
24
|
+
};
|
|
25
|
+
declare const LogStoreBody: ({ path, prev, next, contextLines }: LogStoreBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export default LogStoreBody;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import e from "./helpers/buildDiff.mjs";
|
|
2
|
+
import t from "./helpers/buildHunks.mjs";
|
|
3
|
+
import n from "./helpers/buildSections.mjs";
|
|
4
|
+
import r from "clsx";
|
|
5
|
+
import { useCallback as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreBody.tsx
|
|
8
|
+
var d = ({ path: d, prev: f, next: p, contextLines: m = 10 }) => {
|
|
9
|
+
let h = s(null), [g, _] = c(0), v = o(() => e(f, p), [f, p]), y = o(() => t(v), [v]), b = o(() => n(v, y, m), [
|
|
10
|
+
v,
|
|
11
|
+
y,
|
|
12
|
+
m
|
|
13
|
+
]), x = y.length > 0, S = g === 0, C = g === y.length - 1, w = i((e) => {
|
|
14
|
+
(h.current?.querySelector(`[data-hunk="${e}"]`))?.scrollIntoView({ block: "center" });
|
|
15
|
+
}, []), T = i((e) => {
|
|
16
|
+
let t = g + e;
|
|
17
|
+
t < 0 || t >= y.length || (_(t), w(t));
|
|
18
|
+
}, [
|
|
19
|
+
g,
|
|
20
|
+
y.length,
|
|
21
|
+
w
|
|
22
|
+
]);
|
|
23
|
+
a(() => {
|
|
24
|
+
x && (_(0), w(0));
|
|
25
|
+
}, [v]);
|
|
26
|
+
let E = i(() => T(-1), [T]), D = i(() => T(1), [T]);
|
|
27
|
+
return /* @__PURE__ */ u("div", {
|
|
28
|
+
className: "mx-2 my-1.5 flex flex-col gap-2 rounded border border-zinc-200 bg-zinc-50 font-mono dark:border-zinc-700 dark:bg-zinc-800/50",
|
|
29
|
+
children: [/* @__PURE__ */ u("div", {
|
|
30
|
+
className: "flex items-center justify-between border-b border-zinc-200 px-2 py-1 dark:border-zinc-700",
|
|
31
|
+
children: [/* @__PURE__ */ u("div", {
|
|
32
|
+
className: "flex min-w-0 items-center gap-1.5",
|
|
33
|
+
children: [/* @__PURE__ */ l("span", {
|
|
34
|
+
className: "shrink-0 text-zinc-500 dark:text-zinc-400",
|
|
35
|
+
children: "path"
|
|
36
|
+
}), /* @__PURE__ */ l("span", {
|
|
37
|
+
className: "truncate text-zinc-400 dark:text-zinc-500",
|
|
38
|
+
children: d ?? "(full state)"
|
|
39
|
+
})]
|
|
40
|
+
}), /* @__PURE__ */ u("div", {
|
|
41
|
+
className: "flex shrink-0 items-center gap-2",
|
|
42
|
+
children: [
|
|
43
|
+
x && /* @__PURE__ */ u("span", {
|
|
44
|
+
className: "text-zinc-400 tabular-nums dark:text-zinc-600",
|
|
45
|
+
children: [
|
|
46
|
+
g + 1,
|
|
47
|
+
"/",
|
|
48
|
+
y.length
|
|
49
|
+
]
|
|
50
|
+
}),
|
|
51
|
+
/* @__PURE__ */ l("button", {
|
|
52
|
+
className: r("rounded bg-zinc-200 px-2 py-0.5 text-xs text-zinc-600 transition-colors hover:bg-zinc-300 dark:bg-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-600", { "cursor-not-allowed opacity-30 dark:cursor-not-allowed dark:opacity-30": !x || S }),
|
|
53
|
+
disabled: !x || S,
|
|
54
|
+
onClick: E,
|
|
55
|
+
children: "↑ Prev"
|
|
56
|
+
}),
|
|
57
|
+
/* @__PURE__ */ l("button", {
|
|
58
|
+
className: r("rounded bg-zinc-200 px-2 py-0.5 text-xs text-zinc-600 transition-colors hover:bg-zinc-300 dark:bg-zinc-700 dark:text-zinc-300 dark:hover:bg-zinc-600", { "cursor-not-allowed opacity-30 dark:cursor-not-allowed dark:opacity-30": !x || C }),
|
|
59
|
+
disabled: !x || C,
|
|
60
|
+
onClick: D,
|
|
61
|
+
children: "↓ Next"
|
|
62
|
+
})
|
|
63
|
+
]
|
|
64
|
+
})]
|
|
65
|
+
}), /* @__PURE__ */ u("pre", {
|
|
66
|
+
ref: h,
|
|
67
|
+
className: "max-h-64 overflow-auto bg-zinc-50 text-xs leading-5 dark:bg-zinc-800",
|
|
68
|
+
children: [!x && /* @__PURE__ */ l("div", {
|
|
69
|
+
className: "px-3 py-2 text-zinc-400 italic dark:text-zinc-600",
|
|
70
|
+
children: "No changes"
|
|
71
|
+
}), b.map((e, t) => {
|
|
72
|
+
if (e.kind === "separator") {
|
|
73
|
+
let n = e.hunkIndex === g;
|
|
74
|
+
return /* @__PURE__ */ u("div", {
|
|
75
|
+
"data-hunk": e.hunkIndex,
|
|
76
|
+
className: r("px-3", {
|
|
77
|
+
"bg-violet-50 text-violet-600 dark:bg-violet-900/40 dark:text-violet-400": n,
|
|
78
|
+
"text-zinc-400 dark:text-zinc-700": !n
|
|
79
|
+
}),
|
|
80
|
+
children: [
|
|
81
|
+
"@@ hunk ",
|
|
82
|
+
e.hunkIndex + 1,
|
|
83
|
+
"/",
|
|
84
|
+
e.total,
|
|
85
|
+
" @@"
|
|
86
|
+
]
|
|
87
|
+
}, `sep-${t}`);
|
|
88
|
+
}
|
|
89
|
+
let { line: n, diffIndex: i, hunkIndex: a } = e, o = a === g;
|
|
90
|
+
return n.type === "removed" ? /* @__PURE__ */ u("div", {
|
|
91
|
+
"data-hunk": a ?? void 0,
|
|
92
|
+
className: r("px-3", {
|
|
93
|
+
"bg-red-100 text-red-700 dark:bg-red-500/20 dark:text-red-300": o,
|
|
94
|
+
"bg-red-50 text-red-600 dark:bg-red-500/10 dark:text-red-400": !o
|
|
95
|
+
}),
|
|
96
|
+
children: ["- ", n.text]
|
|
97
|
+
}, i) : n.type === "added" ? /* @__PURE__ */ u("div", {
|
|
98
|
+
"data-hunk": a ?? void 0,
|
|
99
|
+
className: r("px-3", {
|
|
100
|
+
"bg-emerald-100 text-emerald-700 dark:bg-emerald-500/20 dark:text-emerald-300": o,
|
|
101
|
+
"bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400": !o
|
|
102
|
+
}),
|
|
103
|
+
children: ["+ ", n.text]
|
|
104
|
+
}, i) : /* @__PURE__ */ u("div", {
|
|
105
|
+
className: "px-3 text-zinc-400 dark:text-zinc-600",
|
|
106
|
+
children: [" ", n.text]
|
|
107
|
+
}, i);
|
|
108
|
+
})]
|
|
109
|
+
})]
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
//#endregion
|
|
113
|
+
export { d as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type LogStoreHeaderProps = {
|
|
3
|
+
storeName?: string;
|
|
4
|
+
path?: string;
|
|
5
|
+
message?: ReactNode;
|
|
6
|
+
time?: string | Date;
|
|
7
|
+
};
|
|
8
|
+
declare const LogStoreHeader: ({ storeName, path, message, time }: LogStoreHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default LogStoreHeader;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import e from "../../LogStatus.mjs";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { formatDate as r } from "@plitzi/sdk-shared";
|
|
4
|
+
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreHeader.tsx
|
|
5
|
+
var i = ({ storeName: i, path: a, message: o, time: s }) => /* @__PURE__ */ n("div", {
|
|
6
|
+
className: "flex w-full items-center gap-2 overflow-hidden",
|
|
7
|
+
children: [
|
|
8
|
+
/* @__PURE__ */ t("span", {
|
|
9
|
+
className: "shrink-0 font-mono text-zinc-400 tabular-nums dark:text-zinc-500",
|
|
10
|
+
children: typeof s == "string" ? s : r(s)
|
|
11
|
+
}),
|
|
12
|
+
/* @__PURE__ */ t(e, {
|
|
13
|
+
logType: "info",
|
|
14
|
+
children: "Store"
|
|
15
|
+
}),
|
|
16
|
+
i && /* @__PURE__ */ t("span", {
|
|
17
|
+
className: "shrink-0 font-semibold text-zinc-700 dark:text-zinc-200",
|
|
18
|
+
children: i
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ t("span", {
|
|
21
|
+
className: "truncate font-mono text-zinc-400 dark:text-zinc-500",
|
|
22
|
+
children: a ?? o ?? "(full state)"
|
|
23
|
+
})
|
|
24
|
+
]
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { i as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import e from "./serialize.mjs";
|
|
2
|
+
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildDiff.ts
|
|
3
|
+
var t = (t, n) => {
|
|
4
|
+
let r = e(t).split("\n"), i = e(n).split("\n"), a = r.length, o = i.length, s = Array.from({ length: a + 1 }, () => Array(o + 1).fill(0));
|
|
5
|
+
for (let e = 1; e <= a; e++) for (let t = 1; t <= o; t++) s[e][t] = r[e - 1] === i[t - 1] ? s[e - 1][t - 1] + 1 : Math.max(s[e - 1][t], s[e][t - 1]);
|
|
6
|
+
let c = [], l = a, u = o;
|
|
7
|
+
for (; l > 0 || u > 0;) l > 0 && u > 0 && r[l - 1] === i[u - 1] ? (c.unshift({
|
|
8
|
+
type: "same",
|
|
9
|
+
text: r[l - 1]
|
|
10
|
+
}), l--, u--) : u > 0 && (l === 0 || s[l][u - 1] >= s[l - 1][u]) ? (c.unshift({
|
|
11
|
+
type: "added",
|
|
12
|
+
text: i[u - 1]
|
|
13
|
+
}), u--) : (c.unshift({
|
|
14
|
+
type: "removed",
|
|
15
|
+
text: r[l - 1]
|
|
16
|
+
}), l--);
|
|
17
|
+
return c;
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { t as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildHunks.ts
|
|
2
|
+
var e = (e) => {
|
|
3
|
+
let t = [], n = -1;
|
|
4
|
+
for (let r = 0; r < e.length; r++) e[r].type === "same" ? n !== -1 && (t.push({
|
|
5
|
+
start: n,
|
|
6
|
+
end: r - 1
|
|
7
|
+
}), n = -1) : n === -1 && (n = r);
|
|
8
|
+
return n !== -1 && t.push({
|
|
9
|
+
start: n,
|
|
10
|
+
end: e.length - 1
|
|
11
|
+
}), t;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { e as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildSections.ts
|
|
2
|
+
var e = (e, t, n) => {
|
|
3
|
+
if (t.length === 0) return e.map((e, t) => ({
|
|
4
|
+
kind: "line",
|
|
5
|
+
line: e,
|
|
6
|
+
diffIndex: t,
|
|
7
|
+
hunkIndex: null
|
|
8
|
+
}));
|
|
9
|
+
let r = [], i = -1;
|
|
10
|
+
return t.forEach((a, o) => {
|
|
11
|
+
let s = Math.max(0, a.start - n), c = Math.min(e.length - 1, a.end + n);
|
|
12
|
+
s > i + 1 && r.push({
|
|
13
|
+
kind: "separator",
|
|
14
|
+
hunkIndex: o,
|
|
15
|
+
total: t.length
|
|
16
|
+
});
|
|
17
|
+
for (let t = Math.max(s, i + 1); t <= c; t++) {
|
|
18
|
+
let n = t >= a.start && t <= a.end;
|
|
19
|
+
r.push({
|
|
20
|
+
kind: "line",
|
|
21
|
+
line: e[t],
|
|
22
|
+
diffIndex: t,
|
|
23
|
+
hunkIndex: n ? o : null
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
i = c;
|
|
27
|
+
}), r;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { e as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/serialize.ts
|
|
2
|
+
var e = (e) => {
|
|
3
|
+
if (e == null) return "";
|
|
4
|
+
if (typeof e == "function") return "Function";
|
|
5
|
+
try {
|
|
6
|
+
return JSON.stringify(e, null, 2);
|
|
7
|
+
} catch {
|
|
8
|
+
return String(e);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { e as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './LogStore';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type PluginDetailsProps = {
|
|
2
|
+
label?: string;
|
|
3
|
+
version?: string;
|
|
4
|
+
author?: string;
|
|
5
|
+
settings?: Record<string, unknown>;
|
|
6
|
+
};
|
|
7
|
+
declare const PluginDetails: ({ author, settings, label, version }: PluginDetailsProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default PluginDetails;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { useMemo as e } from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import r from "@plitzi/sdk-shared/helpers/syntaxHighlight";
|
|
4
|
+
//#region src/components/DevToolsPanel/tabs/PluginsViewer/PluginDetails.tsx
|
|
5
|
+
var i = ({ author: i, settings: a, label: o, version: s }) => {
|
|
6
|
+
let c = e(() => !a || Object.keys(a).length === 0 ? null : r(JSON.stringify(a, null, 2)), [a]);
|
|
7
|
+
return /* @__PURE__ */ n("div", {
|
|
8
|
+
className: "flex h-full grow basis-0 flex-col overflow-y-auto p-4",
|
|
9
|
+
children: [/* @__PURE__ */ n("div", {
|
|
10
|
+
className: "mb-4 border-b border-zinc-200 pb-3 dark:border-zinc-700",
|
|
11
|
+
children: [/* @__PURE__ */ t("div", {
|
|
12
|
+
className: "text-base font-semibold text-zinc-800 dark:text-zinc-200",
|
|
13
|
+
children: o
|
|
14
|
+
}), /* @__PURE__ */ t("div", {
|
|
15
|
+
className: "text-xs text-zinc-400 dark:text-zinc-500",
|
|
16
|
+
children: "Plugin"
|
|
17
|
+
})]
|
|
18
|
+
}), /* @__PURE__ */ n("div", {
|
|
19
|
+
className: "flex flex-col gap-3",
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ n("div", {
|
|
22
|
+
className: "flex flex-col gap-0.5",
|
|
23
|
+
children: [/* @__PURE__ */ t("span", {
|
|
24
|
+
className: "text-xs font-medium tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
25
|
+
children: "Version"
|
|
26
|
+
}), /* @__PURE__ */ t("span", {
|
|
27
|
+
className: "font-mono text-xs text-zinc-800 dark:text-zinc-200",
|
|
28
|
+
children: s ?? "—"
|
|
29
|
+
})]
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ n("div", {
|
|
32
|
+
className: "flex flex-col gap-0.5",
|
|
33
|
+
children: [/* @__PURE__ */ t("span", {
|
|
34
|
+
className: "text-xs font-medium tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
35
|
+
children: "Author"
|
|
36
|
+
}), /* @__PURE__ */ t("span", {
|
|
37
|
+
className: "text-xs text-zinc-800 dark:text-zinc-200",
|
|
38
|
+
children: i ?? "—"
|
|
39
|
+
})]
|
|
40
|
+
}),
|
|
41
|
+
/* @__PURE__ */ n("div", {
|
|
42
|
+
className: "flex flex-col gap-1",
|
|
43
|
+
children: [/* @__PURE__ */ t("span", {
|
|
44
|
+
className: "text-xs font-medium tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
45
|
+
children: "Settings"
|
|
46
|
+
}), c ? /* @__PURE__ */ t("pre", {
|
|
47
|
+
className: "overflow-auto rounded bg-zinc-50 p-2 font-mono text-xs leading-5 dark:bg-zinc-800",
|
|
48
|
+
dangerouslySetInnerHTML: { __html: c }
|
|
49
|
+
}) : /* @__PURE__ */ t("span", {
|
|
50
|
+
className: "text-xs text-zinc-400 italic dark:text-zinc-500",
|
|
51
|
+
children: "No settings"
|
|
52
|
+
})]
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
export { i as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import e from "./PluginDetails.mjs";
|
|
2
|
+
import t from "../../../List/index.mjs";
|
|
3
|
+
import n from "clsx";
|
|
4
|
+
import { use as r, useCallback as i, useMemo as a, useState as o } from "react";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
import l from "@plitzi/sdk-plugins/PluginsContext";
|
|
7
|
+
//#region src/components/DevToolsPanel/tabs/PluginsViewer/PluginsViewer.tsx
|
|
8
|
+
var u = ({ className: u }) => {
|
|
9
|
+
let { plugins: d } = r(l), f = a(() => Object.keys(d).map((e) => {
|
|
10
|
+
let t = d[e];
|
|
11
|
+
return {
|
|
12
|
+
...t,
|
|
13
|
+
id: e,
|
|
14
|
+
name: e,
|
|
15
|
+
label: /* @__PURE__ */ c("div", {
|
|
16
|
+
className: "flex flex-col gap-0.5",
|
|
17
|
+
children: [/* @__PURE__ */ s("span", {
|
|
18
|
+
className: "capitalize",
|
|
19
|
+
children: e
|
|
20
|
+
}), /* @__PURE__ */ s("span", {
|
|
21
|
+
className: "text-[10px] text-zinc-400 dark:text-zinc-500",
|
|
22
|
+
children: t.manifest.version
|
|
23
|
+
})]
|
|
24
|
+
})
|
|
25
|
+
};
|
|
26
|
+
}), [d]), [p, m] = o(), h = i((e) => m(e), []);
|
|
27
|
+
return /* @__PURE__ */ c("div", {
|
|
28
|
+
className: n("flex h-full w-full", u),
|
|
29
|
+
children: [/* @__PURE__ */ s(t, {
|
|
30
|
+
className: "w-[240px]",
|
|
31
|
+
items: f,
|
|
32
|
+
value: p,
|
|
33
|
+
onSelect: h
|
|
34
|
+
}), p ? /* @__PURE__ */ s(e, {
|
|
35
|
+
label: p.name,
|
|
36
|
+
version: p.manifest.version,
|
|
37
|
+
author: p.manifest.author,
|
|
38
|
+
settings: p.settings
|
|
39
|
+
}) : /* @__PURE__ */ c("div", {
|
|
40
|
+
className: "flex grow flex-col items-center justify-center gap-2 text-zinc-400 dark:text-zinc-600",
|
|
41
|
+
children: [/* @__PURE__ */ s("i", { className: "fa-solid fa-puzzle-piece text-2xl opacity-30" }), /* @__PURE__ */ s("span", { children: "Select a plugin" })]
|
|
42
|
+
})]
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { u as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type VariableValueProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
type?: string;
|
|
4
|
+
preffix?: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const VariableValue: ({ className, type, preffix, value }: VariableValueProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default VariableValue;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import e from "clsx";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/DevToolsPanel/tabs/VariablesViewer/VariableValue.tsx
|
|
4
|
+
var r = ({ className: r, type: i, preffix: a, value: o }) => /* @__PURE__ */ n("div", {
|
|
5
|
+
className: e("flex items-center gap-1.5", r),
|
|
6
|
+
children: [
|
|
7
|
+
a && /* @__PURE__ */ t("span", {
|
|
8
|
+
className: "shrink-0 text-[10px] font-medium tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
9
|
+
children: a
|
|
10
|
+
}),
|
|
11
|
+
i === "color" && /* @__PURE__ */ t("div", {
|
|
12
|
+
className: "h-3.5 w-3.5 shrink-0 rounded-sm border border-zinc-300 dark:border-zinc-600",
|
|
13
|
+
title: o,
|
|
14
|
+
style: { backgroundColor: o }
|
|
15
|
+
}),
|
|
16
|
+
/* @__PURE__ */ t("span", {
|
|
17
|
+
className: e("truncate font-mono", {
|
|
18
|
+
"text-zinc-700 dark:text-zinc-300": i === "color",
|
|
19
|
+
"text-violet-700 dark:text-violet-300": i !== "color"
|
|
20
|
+
}),
|
|
21
|
+
title: o,
|
|
22
|
+
children: o ?? "—"
|
|
23
|
+
})
|
|
24
|
+
]
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { r as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SchemaVariable } from '@plitzi/sdk-shared';
|
|
2
|
+
export type VariablesListProps = {
|
|
3
|
+
variables?: SchemaVariable[];
|
|
4
|
+
variablesParsed?: Record<string, string>;
|
|
5
|
+
};
|
|
6
|
+
declare const VariablesList: ({ variables, variablesParsed }: VariablesListProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default VariablesList;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import e from "./VariablesListItem.mjs";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/DevToolsPanel/tabs/VariablesViewer/VariablesList.tsx
|
|
4
|
+
var r = ({ variables: r, variablesParsed: i }) => !r || r.length === 0 ? /* @__PURE__ */ t("div", {
|
|
5
|
+
className: "py-4 text-center text-xs text-zinc-400 italic dark:text-zinc-600",
|
|
6
|
+
children: "No variables defined"
|
|
7
|
+
}) : /* @__PURE__ */ n("div", {
|
|
8
|
+
className: "w-full overflow-hidden rounded border border-zinc-200 dark:border-zinc-700",
|
|
9
|
+
children: [/* @__PURE__ */ n("div", {
|
|
10
|
+
className: "grid grid-cols-[1fr_1.5fr] border-b border-zinc-200 bg-zinc-50 px-3 py-1 text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-500",
|
|
11
|
+
children: [/* @__PURE__ */ t("span", {
|
|
12
|
+
className: "text-[10px] font-semibold tracking-wider uppercase",
|
|
13
|
+
children: "Name"
|
|
14
|
+
}), /* @__PURE__ */ t("span", {
|
|
15
|
+
className: "text-[10px] font-semibold tracking-wider uppercase",
|
|
16
|
+
children: "Value"
|
|
17
|
+
})]
|
|
18
|
+
}), r.map((n, r) => /* @__PURE__ */ t(e, {
|
|
19
|
+
name: n.name,
|
|
20
|
+
type: n.type,
|
|
21
|
+
value: i?.[n.name]
|
|
22
|
+
}, r))]
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { StyleVariableValue } from '@plitzi/sdk-shared';
|
|
2
|
+
export type VariablesListItemProps = {
|
|
3
|
+
name?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
value?: StyleVariableValue;
|
|
6
|
+
};
|
|
7
|
+
declare const VariablesListItem: ({ name, type, value }: VariablesListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default VariablesListItem;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import e from "./VariableValue.mjs";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/DevToolsPanel/tabs/VariablesViewer/VariablesListItem.tsx
|
|
4
|
+
var r = ({ name: r, type: i, value: a = "" }) => /* @__PURE__ */ n("div", {
|
|
5
|
+
className: "grid grid-cols-[1fr_1.5fr] items-center border-b border-zinc-100 px-3 py-1.5 transition-colors hover:bg-zinc-50 dark:border-zinc-800 dark:hover:bg-zinc-800/60",
|
|
6
|
+
children: [/* @__PURE__ */ n("div", {
|
|
7
|
+
className: "flex min-w-0 flex-col gap-0.5 pr-2",
|
|
8
|
+
children: [/* @__PURE__ */ t("span", {
|
|
9
|
+
className: "truncate font-medium text-zinc-800 dark:text-zinc-200",
|
|
10
|
+
title: r,
|
|
11
|
+
children: r
|
|
12
|
+
}), /* @__PURE__ */ t("span", {
|
|
13
|
+
className: "text-[10px] tracking-wider text-zinc-400 uppercase dark:text-zinc-600",
|
|
14
|
+
children: i
|
|
15
|
+
})]
|
|
16
|
+
}), /* @__PURE__ */ n("div", {
|
|
17
|
+
className: "flex min-w-0 flex-col gap-0.5",
|
|
18
|
+
children: [(typeof a == "string" || typeof a == "number") && /* @__PURE__ */ t(e, {
|
|
19
|
+
type: i,
|
|
20
|
+
value: a
|
|
21
|
+
}), typeof a == "object" && Object.keys(a).map((n, r) => /* @__PURE__ */ t(e, {
|
|
22
|
+
type: i,
|
|
23
|
+
preffix: `${n}:`,
|
|
24
|
+
value: a[n]
|
|
25
|
+
}, r))]
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { r as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StyleVariables } from '@plitzi/sdk-shared';
|
|
2
|
+
export type VariablesListProps = {
|
|
3
|
+
variables?: Partial<StyleVariables>;
|
|
4
|
+
};
|
|
5
|
+
declare const VariablesStyleList: ({ variables }: VariablesListProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default VariablesStyleList;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import e from "./VariablesListItem.mjs";
|
|
2
|
+
import { useMemo as t } from "react";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/DevToolsPanel/tabs/VariablesViewer/VariablesStyleList.tsx
|
|
5
|
+
var i = ({ variables: i }) => {
|
|
6
|
+
let a = t(() => Object.keys(i ?? {}).reduce((e, t) => {
|
|
7
|
+
let n = i?.[t];
|
|
8
|
+
return n && Object.keys(n).forEach((r) => {
|
|
9
|
+
e.push({
|
|
10
|
+
name: r,
|
|
11
|
+
type: t === "color" ? "color" : "text",
|
|
12
|
+
value: n[r]
|
|
13
|
+
});
|
|
14
|
+
}), e;
|
|
15
|
+
}, []), [i]);
|
|
16
|
+
return a.length === 0 ? /* @__PURE__ */ n("div", {
|
|
17
|
+
className: "py-4 text-center text-xs text-zinc-400 italic dark:text-zinc-600",
|
|
18
|
+
children: "No style variables defined"
|
|
19
|
+
}) : /* @__PURE__ */ r("div", {
|
|
20
|
+
className: "w-full overflow-hidden rounded border border-zinc-200 dark:border-zinc-700",
|
|
21
|
+
children: [/* @__PURE__ */ r("div", {
|
|
22
|
+
className: "grid grid-cols-[1fr_1.5fr] border-b border-zinc-200 bg-zinc-50 px-3 py-1 text-zinc-400 dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-500",
|
|
23
|
+
children: [/* @__PURE__ */ n("span", {
|
|
24
|
+
className: "text-[10px] font-semibold tracking-wider uppercase",
|
|
25
|
+
children: "Name"
|
|
26
|
+
}), /* @__PURE__ */ n("span", {
|
|
27
|
+
className: "text-[10px] font-semibold tracking-wider uppercase",
|
|
28
|
+
children: "Value"
|
|
29
|
+
})]
|
|
30
|
+
}), a.map((t, r) => /* @__PURE__ */ n(e, {
|
|
31
|
+
name: t.name,
|
|
32
|
+
type: t.type,
|
|
33
|
+
value: t.value
|
|
34
|
+
}, r))]
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { i as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import e from "./VariablesList.mjs";
|
|
2
|
+
import t from "./VariablesStyleList.mjs";
|
|
3
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
import { createStoreHook as i } from "@plitzi/sdk-store/createStore";
|
|
5
|
+
import a from "@plitzi/sdk-shared/dataSource/hooks/useDataSource";
|
|
6
|
+
//#region src/components/DevToolsPanel/tabs/VariablesViewer/VariablesViewer.tsx
|
|
7
|
+
var o = () => {
|
|
8
|
+
let { useStore: o } = i(), [[s, c]] = o(["schema.variables", "style.variables"]), { variables: l } = a({
|
|
9
|
+
id: "",
|
|
10
|
+
mode: "read"
|
|
11
|
+
});
|
|
12
|
+
return /* @__PURE__ */ r("div", {
|
|
13
|
+
className: "flex w-full flex-col gap-4 overflow-y-auto p-3",
|
|
14
|
+
children: [/* @__PURE__ */ r("section", {
|
|
15
|
+
className: "flex flex-col gap-1.5",
|
|
16
|
+
children: [/* @__PURE__ */ r("div", {
|
|
17
|
+
className: "flex items-center gap-2 text-[10px] font-semibold tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
18
|
+
children: [/* @__PURE__ */ n("i", { className: "fa-solid fa-code" }), "Schema Variables"]
|
|
19
|
+
}), /* @__PURE__ */ n(e, {
|
|
20
|
+
variables: s,
|
|
21
|
+
variablesParsed: l
|
|
22
|
+
})]
|
|
23
|
+
}), /* @__PURE__ */ r("section", {
|
|
24
|
+
className: "flex flex-col gap-1.5",
|
|
25
|
+
children: [/* @__PURE__ */ r("div", {
|
|
26
|
+
className: "flex items-center gap-2 text-[10px] font-semibold tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
|
|
27
|
+
children: [/* @__PURE__ */ n("i", { className: "fa-solid fa-palette" }), "Style Variables"]
|
|
28
|
+
}), /* @__PURE__ */ n(t, { variables: c })]
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { o as default };
|