@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.
Files changed (132) hide show
  1. package/CHANGELOG.md +1406 -0
  2. package/dist/DevToolsContainer.d.ts +13 -0
  3. package/dist/DevToolsContainer.mjs +34 -0
  4. package/dist/DevToolsContextProvider.d.ts +6 -0
  5. package/dist/DevToolsContextProvider.mjs +46 -0
  6. package/dist/components/DevToolsPanel/DevToolsBody.d.ts +9 -0
  7. package/dist/components/DevToolsPanel/DevToolsBody.mjs +35 -0
  8. package/dist/components/DevToolsPanel/DevToolsButton.d.ts +10 -0
  9. package/dist/components/DevToolsPanel/DevToolsButton.mjs +14 -0
  10. package/dist/components/DevToolsPanel/DevToolsHeader.d.ts +10 -0
  11. package/dist/components/DevToolsPanel/DevToolsHeader.mjs +62 -0
  12. package/dist/components/DevToolsPanel/DevToolsPanel.d.ts +10 -0
  13. package/dist/components/DevToolsPanel/DevToolsPanel.mjs +48 -0
  14. package/dist/components/DevToolsPanel/DevToolsSubHeader.d.ts +10 -0
  15. package/dist/components/DevToolsPanel/DevToolsSubHeader.mjs +62 -0
  16. package/dist/components/DevToolsPanel/index.d.ts +3 -0
  17. package/dist/components/DevToolsPanel/index.mjs +5 -0
  18. package/dist/components/DevToolsPanel/tabs/DataSourceViewer/DataSourceViewer.d.ts +5 -0
  19. package/dist/components/DevToolsPanel/tabs/DataSourceViewer/DataSourceViewer.mjs +30 -0
  20. package/dist/components/DevToolsPanel/tabs/DataSourceViewer/index.d.ts +3 -0
  21. package/dist/components/DevToolsPanel/tabs/DataSourceViewer/index.mjs +5 -0
  22. package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsAttributes.d.ts +6 -0
  23. package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsAttributes.mjs +19 -0
  24. package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsDefinition.d.ts +7 -0
  25. package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsDefinition.mjs +20 -0
  26. package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsValue.d.ts +10 -0
  27. package/dist/components/DevToolsPanel/tabs/ElementsViewer/DetailsValue.mjs +31 -0
  28. package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementDetails.d.ts +8 -0
  29. package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementDetails.mjs +21 -0
  30. package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsList.d.ts +8 -0
  31. package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsList.mjs +35 -0
  32. package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsListItem.d.ts +9 -0
  33. package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsListItem.mjs +24 -0
  34. package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsViewer.d.ts +7 -0
  35. package/dist/components/DevToolsPanel/tabs/ElementsViewer/ElementsViewer.mjs +25 -0
  36. package/dist/components/DevToolsPanel/tabs/ElementsViewer/index.d.ts +3 -0
  37. package/dist/components/DevToolsPanel/tabs/ElementsViewer/index.mjs +5 -0
  38. package/dist/components/DevToolsPanel/tabs/Logs/Log.d.ts +11 -0
  39. package/dist/components/DevToolsPanel/tabs/Logs/Log.mjs +24 -0
  40. package/dist/components/DevToolsPanel/tabs/Logs/LogStatus.d.ts +10 -0
  41. package/dist/components/DevToolsPanel/tabs/Logs/LogStatus.mjs +30 -0
  42. package/dist/components/DevToolsPanel/tabs/Logs/LogStatusIcon.d.ts +11 -0
  43. package/dist/components/DevToolsPanel/tabs/Logs/LogStatusIcon.mjs +24 -0
  44. package/dist/components/DevToolsPanel/tabs/Logs/Logs.d.ts +10 -0
  45. package/dist/components/DevToolsPanel/tabs/Logs/Logs.mjs +61 -0
  46. package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummary.d.ts +11 -0
  47. package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummary.mjs +47 -0
  48. package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummaryItem.d.ts +11 -0
  49. package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/LogsSummaryItem.mjs +35 -0
  50. package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/index.d.ts +3 -0
  51. package/dist/components/DevToolsPanel/tabs/Logs/LogsSummary/index.mjs +5 -0
  52. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyContent.d.ts +8 -0
  53. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyContent.mjs +38 -0
  54. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyHeader.d.ts +11 -0
  55. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/BodyHeader.mjs +109 -0
  56. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTree.d.ts +11 -0
  57. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTree.mjs +45 -0
  58. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTreeNode.d.ts +13 -0
  59. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTreeNode.mjs +40 -0
  60. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/index.d.ts +3 -0
  61. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/index.mjs +5 -0
  62. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/InteractionNode.d.ts +14 -0
  63. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/InteractionNode.mjs +32 -0
  64. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeHeader.d.ts +9 -0
  65. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeHeader.mjs +49 -0
  66. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeMetadata.d.ts +8 -0
  67. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeMetadata.mjs +20 -0
  68. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeWhen.d.ts +6 -0
  69. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeWhen.mjs +19 -0
  70. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/index.d.ts +3 -0
  71. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/index.mjs +5 -0
  72. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteraction.d.ts +10 -0
  73. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteraction.mjs +56 -0
  74. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionBody.d.ts +12 -0
  75. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionBody.mjs +26 -0
  76. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionHeader.d.ts +9 -0
  77. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionHeader.mjs +27 -0
  78. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/index.d.ts +3 -0
  79. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/index.mjs +5 -0
  80. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigation.d.ts +10 -0
  81. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigation.mjs +36 -0
  82. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.d.ts +9 -0
  83. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.mjs +74 -0
  84. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationHeader.d.ts +10 -0
  85. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationHeader.mjs +42 -0
  86. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/index.d.ts +3 -0
  87. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/index.mjs +5 -0
  88. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStore.d.ts +9 -0
  89. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStore.mjs +30 -0
  90. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreBody.d.ts +26 -0
  91. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreBody.mjs +113 -0
  92. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreHeader.d.ts +9 -0
  93. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStoreHeader.mjs +27 -0
  94. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildDiff.d.ts +3 -0
  95. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildDiff.mjs +20 -0
  96. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildHunks.d.ts +3 -0
  97. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildHunks.mjs +14 -0
  98. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildSections.d.ts +3 -0
  99. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/buildSections.mjs +30 -0
  100. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/serialize.d.ts +2 -0
  101. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/helpers/serialize.mjs +12 -0
  102. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/index.d.ts +1 -0
  103. package/dist/components/DevToolsPanel/tabs/Logs/categories/LogStore/index.mjs +2 -0
  104. package/dist/components/DevToolsPanel/tabs/Logs/index.d.ts +3 -0
  105. package/dist/components/DevToolsPanel/tabs/Logs/index.mjs +5 -0
  106. package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginDetails.d.ts +8 -0
  107. package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginDetails.mjs +59 -0
  108. package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginsViewer.d.ts +5 -0
  109. package/dist/components/DevToolsPanel/tabs/PluginsViewer/PluginsViewer.mjs +46 -0
  110. package/dist/components/DevToolsPanel/tabs/PluginsViewer/index.d.ts +6 -0
  111. package/dist/components/DevToolsPanel/tabs/PluginsViewer/index.mjs +6 -0
  112. package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariableValue.d.ts +8 -0
  113. package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariableValue.mjs +27 -0
  114. package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesList.d.ts +7 -0
  115. package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesList.mjs +25 -0
  116. package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesListItem.d.ts +8 -0
  117. package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesListItem.mjs +29 -0
  118. package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesStyleList.d.ts +6 -0
  119. package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesStyleList.mjs +38 -0
  120. package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesViewer.d.ts +2 -0
  121. package/dist/components/DevToolsPanel/tabs/VariablesViewer/VariablesViewer.mjs +33 -0
  122. package/dist/components/DevToolsPanel/tabs/VariablesViewer/index.d.ts +3 -0
  123. package/dist/components/DevToolsPanel/tabs/VariablesViewer/index.mjs +5 -0
  124. package/dist/components/List/List.d.ts +14 -0
  125. package/dist/components/List/List.mjs +35 -0
  126. package/dist/components/List/ListItem.d.ts +11 -0
  127. package/dist/components/List/ListItem.mjs +21 -0
  128. package/dist/components/List/index.d.ts +6 -0
  129. package/dist/components/List/index.mjs +6 -0
  130. package/dist/index.d.ts +5 -0
  131. package/dist/index.mjs +3 -0
  132. package/package.json +357 -0
@@ -0,0 +1,40 @@
1
+ import e from "clsx";
2
+ import { useCallback as t } from "react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/ExecutionTreeNode.tsx
5
+ var i = ({ title: i, action: a, duration: o, status: s, level: c, id: l, isSelected: u, onClick: d }) => {
6
+ let f = t(() => d(l), [l, d]);
7
+ return /* @__PURE__ */ r("div", {
8
+ className: e("flex cursor-pointer items-center gap-2 border-l-2 px-2 py-1 transition-colors", c === 1 ? "pl-5" : "pl-2", {
9
+ "border-l-violet-500 bg-violet-50 text-violet-700 dark:border-l-violet-500 dark:bg-violet-500/15 dark:text-violet-300": u,
10
+ "border-l-transparent text-zinc-500 hover:bg-zinc-100 hover:text-zinc-800 dark:border-l-transparent dark:text-zinc-400 dark:hover:bg-zinc-800 dark:hover:text-zinc-200": !u
11
+ }),
12
+ onClick: f,
13
+ children: [/* @__PURE__ */ n("div", {
14
+ className: e("h-2 w-2 shrink-0 rounded-full", {
15
+ "bg-emerald-500": s === "success",
16
+ "bg-amber-500": s === "skipped",
17
+ "bg-zinc-300 dark:bg-zinc-600": s === "disabled",
18
+ "bg-zinc-400 dark:bg-zinc-500": s === "failed"
19
+ }),
20
+ title: s
21
+ }), /* @__PURE__ */ r("div", {
22
+ className: "flex min-w-0 grow justify-between gap-2",
23
+ children: [/* @__PURE__ */ n("span", {
24
+ className: "truncate",
25
+ children: i
26
+ }), /* @__PURE__ */ r("div", {
27
+ className: "flex shrink-0 items-center gap-1.5 text-zinc-400 dark:text-zinc-600",
28
+ children: [/* @__PURE__ */ n("span", {
29
+ className: "font-mono",
30
+ children: o
31
+ }), a && /* @__PURE__ */ n("span", {
32
+ className: "rounded bg-zinc-100 px-1 font-mono text-[10px] text-zinc-500 dark:bg-zinc-800 dark:text-zinc-500",
33
+ children: a
34
+ })]
35
+ })]
36
+ })]
37
+ });
38
+ };
39
+ //#endregion
40
+ export { i as default };
@@ -0,0 +1,3 @@
1
+ import { default as ExecutionTree } from './ExecutionTree';
2
+ export * from './ExecutionTree';
3
+ export default ExecutionTree;
@@ -0,0 +1,5 @@
1
+ import e from "./ExecutionTree.mjs";
2
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/ExecutionTree/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,14 @@
1
+ import { RuleGroup, RuleValue } from '@plitzi/plitzi-ui/QueryBuilder';
2
+ export type InteractionNodeProps = {
3
+ className?: string;
4
+ name?: string;
5
+ startTime?: number;
6
+ endTime?: number;
7
+ status?: string;
8
+ when?: RuleGroup;
9
+ whenParams?: Record<string, RuleValue>;
10
+ type?: string;
11
+ action?: string;
12
+ };
13
+ declare const InteractionNode: ({ whenParams, name, startTime, endTime, status, when, type, action }: InteractionNodeProps) => import("react/jsx-runtime").JSX.Element;
14
+ export default InteractionNode;
@@ -0,0 +1,32 @@
1
+ import e from "./NodeHeader.mjs";
2
+ import t from "./NodeMetadata.mjs";
3
+ import n from "./NodeWhen.mjs";
4
+ import { useMemo as r } from "react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { getDurationMs as o } from "@plitzi/sdk-shared";
7
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/InteractionNode.tsx
8
+ var s = ({ whenParams: s, name: c = "Node Title", startTime: l = 0, endTime: u = 0, status: d = "notStarted", when: f, type: p, action: m }) => {
9
+ let h = r(() => `${o(l, u)}ms`, [l, u]);
10
+ return /* @__PURE__ */ a("div", {
11
+ className: "flex w-full flex-col gap-2 p-2 text-zinc-700 dark:text-zinc-300",
12
+ children: [
13
+ /* @__PURE__ */ i("div", {
14
+ className: "truncate font-semibold text-zinc-800 dark:text-zinc-200",
15
+ children: c
16
+ }),
17
+ /* @__PURE__ */ i(e, {
18
+ duration: h,
19
+ status: d,
20
+ type: p,
21
+ action: m
22
+ }),
23
+ /* @__PURE__ */ i(n, { when: f }),
24
+ /* @__PURE__ */ i(t, {
25
+ when: f,
26
+ whenParams: s
27
+ })
28
+ ]
29
+ });
30
+ };
31
+ //#endregion
32
+ export { s as default };
@@ -0,0 +1,9 @@
1
+ export type NodeHeaderProps = {
2
+ className?: string;
3
+ duration?: string;
4
+ status?: string;
5
+ type?: string;
6
+ action?: string;
7
+ };
8
+ declare const NodeHeader: ({ duration, status, type, action }: NodeHeaderProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default NodeHeader;
@@ -0,0 +1,49 @@
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeHeader.tsx
3
+ var n = ({ duration: n, status: r, type: i, action: a }) => /* @__PURE__ */ t("div", {
4
+ className: "grid grid-cols-2 gap-x-3 gap-y-0.5 rounded bg-zinc-50 p-2 dark:bg-zinc-800/60",
5
+ children: [
6
+ /* @__PURE__ */ t("div", {
7
+ className: "flex gap-1.5",
8
+ children: [/* @__PURE__ */ e("span", {
9
+ className: "text-zinc-400 dark:text-zinc-500",
10
+ children: "Duration"
11
+ }), /* @__PURE__ */ e("span", {
12
+ className: "font-mono text-zinc-700 dark:text-zinc-300",
13
+ children: n
14
+ })]
15
+ }),
16
+ /* @__PURE__ */ t("div", {
17
+ className: "flex gap-1.5",
18
+ children: [/* @__PURE__ */ e("span", {
19
+ className: "text-zinc-400 dark:text-zinc-500",
20
+ children: "Type"
21
+ }), /* @__PURE__ */ e("span", {
22
+ className: "text-zinc-700 dark:text-zinc-300",
23
+ children: i
24
+ })]
25
+ }),
26
+ /* @__PURE__ */ t("div", {
27
+ className: "flex gap-1.5",
28
+ children: [/* @__PURE__ */ e("span", {
29
+ className: "text-zinc-400 dark:text-zinc-500",
30
+ children: "Status"
31
+ }), /* @__PURE__ */ e("span", {
32
+ className: "text-zinc-700 dark:text-zinc-300",
33
+ children: r
34
+ })]
35
+ }),
36
+ /* @__PURE__ */ t("div", {
37
+ className: "flex gap-1.5",
38
+ children: [/* @__PURE__ */ e("span", {
39
+ className: "text-zinc-400 dark:text-zinc-500",
40
+ children: "Action"
41
+ }), /* @__PURE__ */ e("span", {
42
+ className: "text-zinc-700 dark:text-zinc-300",
43
+ children: a
44
+ })]
45
+ })
46
+ ]
47
+ });
48
+ //#endregion
49
+ export { n as default };
@@ -0,0 +1,8 @@
1
+ import { RuleGroup, RuleValue } from '@plitzi/plitzi-ui/QueryBuilder';
2
+ export type NodeMetadataProps = {
3
+ className?: string;
4
+ when?: RuleGroup;
5
+ whenParams?: Record<string, RuleValue>;
6
+ };
7
+ declare const NodeMetadata: ({ when, whenParams }: NodeMetadataProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export default NodeMetadata;
@@ -0,0 +1,20 @@
1
+ import { useMemo as e } from "react";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { getValuesRequired as r } from "@plitzi/plitzi-ui/QueryBuilder";
4
+ import i from "@plitzi/sdk-shared/helpers/syntaxHighlight";
5
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeMetadata.tsx
6
+ var a = ({ when: a, whenParams: o }) => {
7
+ let s = e(() => !a || Object.keys(a).length === 0 ? "" : i(JSON.stringify(r(a, o), null, 2)), [o, a]);
8
+ return s ? /* @__PURE__ */ n("div", {
9
+ className: "flex flex-col gap-0.5",
10
+ children: [/* @__PURE__ */ t("span", {
11
+ className: "text-[10px] font-semibold tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
12
+ children: "Params"
13
+ }), /* @__PURE__ */ t("pre", {
14
+ className: "overflow-auto rounded bg-zinc-50 p-2 font-mono text-xs leading-5 dark:bg-zinc-800",
15
+ dangerouslySetInnerHTML: { __html: s }
16
+ })]
17
+ }) : null;
18
+ };
19
+ //#endregion
20
+ export { a as default };
@@ -0,0 +1,6 @@
1
+ import { RuleGroup } from '@plitzi/plitzi-ui/QueryBuilder';
2
+ export type NodeWhenProps = {
3
+ when?: RuleGroup;
4
+ };
5
+ declare const NodeWhen: ({ when }: NodeWhenProps) => import("react/jsx-runtime").JSX.Element | null;
6
+ export default NodeWhen;
@@ -0,0 +1,19 @@
1
+ import { useMemo as e } from "react";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { QueryBuilderFormatter as r } from "@plitzi/plitzi-ui/QueryBuilder";
4
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/NodeWhen.tsx
5
+ var i = ({ when: i }) => {
6
+ let a = e(() => i && r(i) || null, [i]);
7
+ return a ? /* @__PURE__ */ n("div", {
8
+ className: "flex flex-col gap-0.5",
9
+ children: [/* @__PURE__ */ t("span", {
10
+ className: "text-[10px] font-semibold tracking-wider text-zinc-400 uppercase dark:text-zinc-500",
11
+ children: "Condition"
12
+ }), /* @__PURE__ */ t("span", {
13
+ className: "break-all text-zinc-700 dark:text-zinc-300",
14
+ children: a
15
+ })]
16
+ }) : null;
17
+ };
18
+ //#endregion
19
+ export { i as default };
@@ -0,0 +1,3 @@
1
+ import { default as InteractionNode } from './InteractionNode';
2
+ export * from './InteractionNode';
3
+ export default InteractionNode;
@@ -0,0 +1,5 @@
1
+ import e from "./InteractionNode.mjs";
2
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/InteractionNode/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,10 @@
1
+ import { LogInteraction as TLogInteraction } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type LogInteractionProps = {
4
+ className?: string;
5
+ message?: ReactNode;
6
+ params: TLogInteraction['params'];
7
+ time?: string;
8
+ };
9
+ declare const LogInteraction: ({ time, message, params: { elementId, status, node, nodes, startTime, endTime } }: LogInteractionProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default LogInteraction;
@@ -0,0 +1,56 @@
1
+ import e from "./LogInteractionBody.mjs";
2
+ import t from "./LogInteractionHeader.mjs";
3
+ import n from "../../LogStatusIcon.mjs";
4
+ import r from "clsx";
5
+ import { useMemo as i } from "react";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ import s from "@plitzi/plitzi-ui/ContainerCollapsable";
8
+ import { getDurationMs as c } from "@plitzi/sdk-shared";
9
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteraction.tsx
10
+ var l = /* @__PURE__ */ a("i", { className: "fa-solid fa-angle-right text-[10px]" }), u = /* @__PURE__ */ a("i", { className: "fa-solid fa-angle-down text-[10px]" }), d = ({ time: d, message: f, params: { elementId: p, status: m, node: h, nodes: g, startTime: _ = 0, endTime: v = 0 } }) => {
11
+ let y = i(() => `${c(_, v)}ms`, [_, v]), b = Object.values(g).filter((e) => e.status === "skipped").length, x = Object.values(g).filter((e) => e.status === "disabled").length;
12
+ return /* @__PURE__ */ o(s, {
13
+ className: r("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", {
14
+ "border-l-emerald-500": m === "completed",
15
+ "border-l-red-500": m === "skipped"
16
+ }),
17
+ collapsed: !0,
18
+ children: [/* @__PURE__ */ a(s.Header, {
19
+ title: /* @__PURE__ */ a(t, {
20
+ status: m,
21
+ message: f,
22
+ time: d
23
+ }),
24
+ placement: "left",
25
+ className: { headerTitle: "overflow-hidden" },
26
+ iconCollapsed: l,
27
+ iconExpanded: u,
28
+ children: /* @__PURE__ */ o("div", {
29
+ className: "flex gap-3 text-zinc-400 dark:text-zinc-500",
30
+ children: [
31
+ m === "completed" && !!b && /* @__PURE__ */ a(n, {
32
+ logType: "warning",
33
+ title: "Skipped",
34
+ children: b
35
+ }),
36
+ m === "completed" && !!x && /* @__PURE__ */ a(n, {
37
+ logType: "custom",
38
+ iconClassName: "fa-solid fa-ban",
39
+ title: "Disabled",
40
+ children: x
41
+ }),
42
+ y
43
+ ]
44
+ })
45
+ }), /* @__PURE__ */ a(s.Content, { children: /* @__PURE__ */ a(e, {
46
+ elementId: p,
47
+ node: h,
48
+ nodes: g,
49
+ startTime: _,
50
+ endTime: v,
51
+ duration: y
52
+ }) })]
53
+ });
54
+ };
55
+ //#endregion
56
+ export { d as default };
@@ -0,0 +1,12 @@
1
+ import { LogInteraction } from '@plitzi/sdk-shared';
2
+ export type LogInteractionBodyProps = {
3
+ className?: string;
4
+ node: LogInteraction['params']['node'];
5
+ nodes: LogInteraction['params']['nodes'];
6
+ startTime: number;
7
+ endTime: number;
8
+ duration?: string;
9
+ elementId?: string;
10
+ };
11
+ declare const LogInteractionBody: ({ node, nodes, startTime, endTime, duration, elementId }: LogInteractionBodyProps) => import("react/jsx-runtime").JSX.Element;
12
+ export default LogInteractionBody;
@@ -0,0 +1,26 @@
1
+ import e from "./BodyContent.mjs";
2
+ import t from "./BodyHeader.mjs";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionBody.tsx
5
+ var i = ({ node: i, nodes: a, startTime: o, endTime: s, duration: c, elementId: l }) => /* @__PURE__ */ r("div", {
6
+ className: "mx-2 my-1.5 flex flex-col gap-2 overflow-hidden rounded border border-zinc-200 text-xs dark:border-zinc-800",
7
+ children: [/* @__PURE__ */ n("div", {
8
+ className: "bg-zinc-50 px-3 py-2 dark:bg-zinc-800/60",
9
+ children: /* @__PURE__ */ n(t, {
10
+ triggerName: i.title,
11
+ startTime: o,
12
+ endTime: s,
13
+ duration: c,
14
+ elementId: l
15
+ })
16
+ }), /* @__PURE__ */ n("div", {
17
+ className: "border-t border-zinc-200 dark:border-zinc-800",
18
+ children: /* @__PURE__ */ n(e, {
19
+ node: i,
20
+ nodes: a,
21
+ className: "gap-0"
22
+ })
23
+ })]
24
+ });
25
+ //#endregion
26
+ export { i as default };
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export type LogInteractionHeaderProps = {
3
+ className?: string;
4
+ status: string;
5
+ message?: ReactNode;
6
+ time?: string;
7
+ };
8
+ declare const LogInteractionHeader: ({ status, message, time }: LogInteractionHeaderProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default LogInteractionHeader;
@@ -0,0 +1,27 @@
1
+ import e from "../../LogStatus.mjs";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/LogInteractionHeader.tsx
4
+ var r = ({ status: r, message: i, time: a }) => /* @__PURE__ */ n("div", {
5
+ className: "flex w-full items-center gap-2 overflow-hidden",
6
+ children: [
7
+ /* @__PURE__ */ t("span", {
8
+ className: "shrink-0 font-mono text-zinc-400 tabular-nums dark:text-zinc-500",
9
+ children: a
10
+ }),
11
+ r === "completed" && /* @__PURE__ */ t(e, {
12
+ logType: "success",
13
+ children: "Completed"
14
+ }),
15
+ r === "skipped" && /* @__PURE__ */ t(e, {
16
+ logType: "custom",
17
+ iconClassName: "fa-solid fa-forward-step",
18
+ children: "Skipped"
19
+ }),
20
+ /* @__PURE__ */ t("div", {
21
+ className: "grow basis-0 truncate text-zinc-700 dark:text-zinc-300",
22
+ children: i
23
+ })
24
+ ]
25
+ });
26
+ //#endregion
27
+ export { r as default };
@@ -0,0 +1,3 @@
1
+ import { default as LogInteraction } from './LogInteraction';
2
+ export * from './LogInteraction';
3
+ export default LogInteraction;
@@ -0,0 +1,5 @@
1
+ import e from "./LogInteraction.mjs";
2
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogInteraction/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,10 @@
1
+ import { LogNavigation as TLogNavigation } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type LogNavigationProps = {
4
+ className?: string;
5
+ message?: ReactNode;
6
+ params?: TLogNavigation['params'];
7
+ time?: string | Date;
8
+ };
9
+ declare const LogNavigation: ({ time, message, params }: LogNavigationProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default LogNavigation;
@@ -0,0 +1,36 @@
1
+ import e from "./LogNavigationBody.mjs";
2
+ import t from "./LogNavigationHeader.mjs";
3
+ import n from "clsx";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import a from "@plitzi/plitzi-ui/ContainerCollapsable";
6
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigation.tsx
7
+ var o = /* @__PURE__ */ r("i", { className: "fa-solid fa-angle-right text-[10px]" }), s = /* @__PURE__ */ r("i", { className: "fa-solid fa-angle-down text-[10px]" }), c = ({ time: c, message: l, params: u }) => /* @__PURE__ */ i(a, {
8
+ className: n("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", {
9
+ "border-l-emerald-500": u?.status === "normal",
10
+ "border-l-red-500": u?.status === "accessDenied",
11
+ "border-l-amber-500": u?.status !== "normal" && u?.status === "accessDenied"
12
+ }),
13
+ collapsed: !0,
14
+ children: [/* @__PURE__ */ r(a.Header, {
15
+ title: /* @__PURE__ */ r(t, {
16
+ status: u?.status,
17
+ message: l,
18
+ time: c
19
+ }),
20
+ placement: "left",
21
+ className: { headerTitle: "overflow-hidden" },
22
+ iconCollapsed: o,
23
+ iconExpanded: s,
24
+ children: /* @__PURE__ */ r("span", {
25
+ className: "text-zinc-400 dark:text-zinc-500",
26
+ children: "0ms"
27
+ })
28
+ }), /* @__PURE__ */ r(a.Content, { children: /* @__PURE__ */ r(e, {
29
+ elementId: u?.elementId,
30
+ startTime: c,
31
+ endTime: c,
32
+ duration: "0ms"
33
+ }) })]
34
+ });
35
+ //#endregion
36
+ export { c as default };
@@ -0,0 +1,9 @@
1
+ export type LogNavigationBodyProps = {
2
+ className?: string;
3
+ startTime?: string | Date;
4
+ endTime?: string | Date;
5
+ duration?: string;
6
+ elementId?: string;
7
+ };
8
+ declare const LogNavigationBody: ({ elementId, startTime, endTime, duration }: LogNavigationBodyProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default LogNavigationBody;
@@ -0,0 +1,74 @@
1
+ import { useMemo as e } from "react";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { createStoreHook as r } from "@plitzi/sdk-store/createStore";
4
+ import { get as i } from "@plitzi/plitzi-ui/helpers";
5
+ import { formatDate as a } from "@plitzi/sdk-shared/helpers";
6
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationBody.tsx
7
+ var o = ({ elementId: o, startTime: s, endTime: c, duration: l }) => {
8
+ let { useStore: u } = r(), [d] = u("schema.flat"), f = e(() => o ? i(d, o) : void 0, [o, d]);
9
+ return /* @__PURE__ */ n("div", {
10
+ className: "m-2 flex justify-around gap-4",
11
+ children: [
12
+ /* @__PURE__ */ n("div", {
13
+ className: "flex min-w-0 grow basis-0 flex-col gap-2",
14
+ children: [/* @__PURE__ */ n("div", {
15
+ className: "flex items-center gap-1 font-bold",
16
+ children: [/* @__PURE__ */ t("i", { className: "fa-regular fa-clock" }), "Times"]
17
+ }), /* @__PURE__ */ n("div", {
18
+ className: "flex flex-col",
19
+ children: [
20
+ /* @__PURE__ */ n("div", {
21
+ className: "flex gap-1",
22
+ children: [/* @__PURE__ */ t("span", { children: "Started:" }), typeof s == "string" ? s : a(s)]
23
+ }),
24
+ /* @__PURE__ */ n("div", {
25
+ className: "flex gap-1",
26
+ children: [/* @__PURE__ */ t("span", { children: "End:" }), typeof c == "string" ? c : a(c)]
27
+ }),
28
+ /* @__PURE__ */ n("div", {
29
+ className: "flex gap-1",
30
+ children: [/* @__PURE__ */ t("span", { children: "Duration:" }), l]
31
+ })
32
+ ]
33
+ })]
34
+ }),
35
+ /* @__PURE__ */ t("div", { className: "border-r border-gray-300" }),
36
+ /* @__PURE__ */ n("div", {
37
+ className: "flex min-w-0 grow basis-0 flex-col gap-2",
38
+ children: [/* @__PURE__ */ n("div", {
39
+ className: "flex items-center gap-1",
40
+ children: [/* @__PURE__ */ t("i", { className: "fa-solid fa-circle-info" }), "Details"]
41
+ }), /* @__PURE__ */ n("div", {
42
+ className: "flex flex-col",
43
+ children: [
44
+ /* @__PURE__ */ n("div", {
45
+ className: "flex gap-1",
46
+ children: [/* @__PURE__ */ t("span", { children: "Type:" }), /* @__PURE__ */ t("span", { children: "Navigation" })]
47
+ }),
48
+ /* @__PURE__ */ n("div", {
49
+ className: "flex gap-1",
50
+ children: [/* @__PURE__ */ t("span", { children: "Trigger:" }), /* @__PURE__ */ t("span", {
51
+ className: "truncate",
52
+ children: "-"
53
+ })]
54
+ }),
55
+ f && /* @__PURE__ */ n("div", {
56
+ className: "flex gap-1",
57
+ children: [/* @__PURE__ */ t("span", { children: "Element:" }), /* @__PURE__ */ n("span", {
58
+ className: "cursor-pointer truncate text-blue-500",
59
+ children: [
60
+ f.definition.label,
61
+ " [",
62
+ o,
63
+ "]"
64
+ ]
65
+ })]
66
+ })
67
+ ]
68
+ })]
69
+ })
70
+ ]
71
+ });
72
+ };
73
+ //#endregion
74
+ export { o as default };
@@ -0,0 +1,10 @@
1
+ import { NavigationStatus } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type LogNavigationHeaderProps = {
4
+ className?: string;
5
+ status?: NavigationStatus;
6
+ message?: ReactNode;
7
+ time?: string | Date;
8
+ };
9
+ declare const LogNavigationHeader: ({ status, message, time }: LogNavigationHeaderProps) => import("react/jsx-runtime").JSX.Element;
10
+ export default LogNavigationHeader;
@@ -0,0 +1,42 @@
1
+ import e from "../../LogStatus.mjs";
2
+ import { useMemo as t } from "react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { formatDate as i } from "@plitzi/sdk-shared";
5
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/LogNavigationHeader.tsx
6
+ var a = ({ status: a, message: o, time: s }) => {
7
+ let { logType: c, statusMessage: l } = t(() => a === "normal" ? {
8
+ logType: "success",
9
+ statusMessage: "Success"
10
+ } : a === "redirect" ? {
11
+ logType: "warning",
12
+ statusMessage: "Redirected"
13
+ } : a === "notFound" ? {
14
+ logType: "warning",
15
+ statusMessage: "Not Found"
16
+ } : a === "accessDenied" ? {
17
+ logType: "danger",
18
+ statusMessage: "Access Denied"
19
+ } : {
20
+ logType: "custom",
21
+ statusMessage: ""
22
+ }, [a]);
23
+ return /* @__PURE__ */ r("div", {
24
+ className: "flex w-full items-center gap-2 overflow-hidden",
25
+ children: [
26
+ /* @__PURE__ */ n("span", {
27
+ className: "shrink-0 font-mono text-zinc-400 tabular-nums dark:text-zinc-500",
28
+ children: typeof s == "string" ? s : i(s)
29
+ }),
30
+ /* @__PURE__ */ n(e, {
31
+ logType: c,
32
+ children: l
33
+ }),
34
+ /* @__PURE__ */ n("div", {
35
+ className: "grow basis-0 truncate text-zinc-700 dark:text-zinc-300",
36
+ children: o
37
+ })
38
+ ]
39
+ });
40
+ };
41
+ //#endregion
42
+ export { a as default };
@@ -0,0 +1,3 @@
1
+ import { default as LogNavigation } from './LogNavigation';
2
+ export * from './LogNavigation';
3
+ export default LogNavigation;
@@ -0,0 +1,5 @@
1
+ import e from "./LogNavigation.mjs";
2
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogNavigation/index.ts
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -0,0 +1,9 @@
1
+ import { LogStore as TLogStore } from '@plitzi/sdk-shared';
2
+ import { ReactNode } from 'react';
3
+ export type LogStoreProps = {
4
+ message?: ReactNode;
5
+ params?: TLogStore['params'];
6
+ time?: string | Date;
7
+ };
8
+ declare const LogStore: ({ time, message, params }: LogStoreProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default LogStore;
@@ -0,0 +1,30 @@
1
+ import e from "./LogStoreBody.mjs";
2
+ import t from "./LogStoreHeader.mjs";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import i from "@plitzi/plitzi-ui/ContainerCollapsable";
5
+ //#region src/components/DevToolsPanel/tabs/Logs/categories/LogStore/LogStore.tsx
6
+ var a = /* @__PURE__ */ n("i", { className: "fa-solid fa-angle-right text-[10px]" }), o = /* @__PURE__ */ n("i", { className: "fa-solid fa-angle-down text-[10px]" }), s = ({ time: s, message: c, params: l }) => /* @__PURE__ */ r(i, {
7
+ className: "last:border-b-none w-full border-b border-l-2 border-b-zinc-200 border-l-violet-500 px-2 py-1 transition-colors hover:bg-zinc-50 dark:border-b-zinc-700 dark:hover:bg-zinc-800/50",
8
+ collapsed: !0,
9
+ children: [/* @__PURE__ */ n(i.Header, {
10
+ title: /* @__PURE__ */ n(t, {
11
+ storeName: l?.storeName,
12
+ path: l?.path,
13
+ message: c,
14
+ time: s
15
+ }),
16
+ placement: "left",
17
+ className: {
18
+ headerTitle: "overflow-hidden",
19
+ header: "hover:bg-transparent dark:hover:bg-transparent"
20
+ },
21
+ iconCollapsed: a,
22
+ iconExpanded: o
23
+ }), /* @__PURE__ */ n(i.Content, { children: /* @__PURE__ */ n(e, {
24
+ path: l?.path,
25
+ prev: l?.prev,
26
+ next: l?.next
27
+ }) })]
28
+ });
29
+ //#endregion
30
+ export { s as default };