@midscene/visualizer 0.0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/dist/es/component/assets/logo-plain.js +128 -0
  2. package/dist/es/component/assets/logo-plain2.js +128 -0
  3. package/dist/es/component/blackboard.js +5 -1
  4. package/dist/es/component/detail-panel.js +2 -2
  5. package/dist/es/component/detail-side.css +3 -2
  6. package/dist/es/component/detail-side.js +14 -5
  7. package/dist/es/component/global-hover-preview.css +1 -1
  8. package/dist/es/component/global-hover-preview.js +6 -1
  9. package/dist/es/component/sidebar.css +2 -1
  10. package/dist/es/component/sidebar.js +19 -12
  11. package/dist/es/component/store.js +7 -6
  12. package/dist/es/component/timeline.js +2 -2
  13. package/dist/es/index.css +14 -9
  14. package/dist/es/index.js +33 -7
  15. package/dist/lib/component/assets/logo-plain.js +156 -0
  16. package/dist/lib/component/assets/logo-plain2.js +156 -0
  17. package/dist/lib/component/blackboard.js +5 -1
  18. package/dist/lib/component/detail-panel.js +2 -2
  19. package/dist/lib/component/detail-side.css +3 -2
  20. package/dist/lib/component/detail-side.js +14 -5
  21. package/dist/lib/component/global-hover-preview.css +1 -1
  22. package/dist/lib/component/global-hover-preview.js +6 -1
  23. package/dist/lib/component/sidebar.css +2 -1
  24. package/dist/lib/component/sidebar.js +19 -12
  25. package/dist/lib/component/store.js +7 -6
  26. package/dist/lib/component/timeline.js +2 -2
  27. package/dist/lib/index.css +14 -9
  28. package/dist/lib/index.js +37 -7
  29. package/dist/types/component/sidebar.d.ts +4 -1
  30. package/dist/types/component/store.d.ts +2 -1
  31. package/dist/types/index.d.ts +7 -2
  32. package/package.json +9 -4
  33. package/.eslintrc.js +0 -9
  34. package/dist/es/assets/logo-plain.16842bbc.svg +0 -70
  35. package/dist/es/assets/logo-plain2.16842bbc.svg +0 -70
  36. package/dist/lib/assets/logo-plain.16842bbc.svg +0 -70
  37. package/dist/lib/assets/logo-plain2.16842bbc.svg +0 -70
  38. package/docs/index.tsx +0 -6
  39. package/modern.config.ts +0 -15
  40. package/src/component/assets/logo-plain.svg +0 -70
  41. package/src/component/assets/logo-plain2.svg +0 -70
  42. package/src/component/blackboard.less +0 -37
  43. package/src/component/blackboard.tsx +0 -293
  44. package/src/component/color.tsx +0 -34
  45. package/src/component/common.less +0 -21
  46. package/src/component/detail-panel.less +0 -47
  47. package/src/component/detail-panel.tsx +0 -124
  48. package/src/component/detail-side.less +0 -131
  49. package/src/component/detail-side.tsx +0 -361
  50. package/src/component/global-hover-preview.less +0 -23
  51. package/src/component/global-hover-preview.tsx +0 -50
  52. package/src/component/misc.tsx +0 -20
  53. package/src/component/panel-title.less +0 -11
  54. package/src/component/panel-title.tsx +0 -11
  55. package/src/component/side-item.tsx +0 -0
  56. package/src/component/sidebar.less +0 -122
  57. package/src/component/sidebar.tsx +0 -205
  58. package/src/component/store.tsx +0 -151
  59. package/src/component/timeline.less +0 -25
  60. package/src/component/timeline.tsx +0 -486
  61. package/src/global.d.ts +0 -11
  62. package/src/index.less +0 -113
  63. package/src/index.tsx +0 -210
  64. package/src/utils.ts +0 -58
  65. package/tsconfig.json +0 -24
@@ -0,0 +1,128 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { jsx, jsxs } from "react/jsx-runtime";
21
+ import * as React from "react";
22
+ const SvgLogoPlain = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(__spreadValues({ xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlSpace: "preserve", width: 535.041, height: 203.6, style: {
23
+ shapeRendering: "geometricPrecision",
24
+ textRendering: "geometricPrecision",
25
+ imageRendering: "optimizeQuality",
26
+ fillRule: "evenodd",
27
+ clipRule: "evenodd"
28
+ }, viewBox: "0 0 16897.65 6430.11" }, props), { children: [
29
+ /* @__PURE__ */ jsxs("defs", { children: [
30
+ /* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain_svg__id0", x1: 11103.21, x2: 10930.41, y1: 5027.34, y2: 1211.98, gradientUnits: "userSpaceOnUse", children: [
31
+ /* @__PURE__ */ jsx("stop", { offset: 0, style: {
32
+ stopOpacity: 1,
33
+ stopColor: "#0a77d4"
34
+ } }),
35
+ /* @__PURE__ */ jsx("stop", { offset: 1, style: {
36
+ stopOpacity: 1,
37
+ stopColor: "#00b1e0"
38
+ } })
39
+ ] }),
40
+ /* @__PURE__ */ jsx("linearGradient", { xlinkHref: "#logo-plain_svg__id0", id: "logo-plain_svg__id1", x1: 11407.32, x2: 11286.4, y1: 5023.83, y2: 1215.5, gradientUnits: "userSpaceOnUse" }),
41
+ /* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain_svg__id2", x1: 6311.87, x2: 3547.5, y1: 4699.25, y2: 1677.39, gradientUnits: "userSpaceOnUse", children: [
42
+ /* @__PURE__ */ jsx("stop", { offset: 0, style: {
43
+ stopOpacity: 1,
44
+ stopColor: "#f65926"
45
+ } }),
46
+ /* @__PURE__ */ jsx("stop", { offset: 1, style: {
47
+ stopOpacity: 1,
48
+ stopColor: "#f0ab1f"
49
+ } })
50
+ ] }),
51
+ /* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain_svg__id3", x1: 3105.35, x2: 2612.67, y1: 5075.61, y2: 1311.04, gradientUnits: "userSpaceOnUse", children: [
52
+ /* @__PURE__ */ jsx("stop", { offset: 0, style: {
53
+ stopOpacity: 1,
54
+ stopColor: "#e52652"
55
+ } }),
56
+ /* @__PURE__ */ jsx("stop", { offset: 1, style: {
57
+ stopOpacity: 1,
58
+ stopColor: "#ff4956"
59
+ } })
60
+ ] }),
61
+ /* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain_svg__id4", x1: 14599.77, x2: 12e3, y1: 4808.34, y2: 1573.25, gradientUnits: "userSpaceOnUse", children: [
62
+ /* @__PURE__ */ jsx("stop", { offset: 0, style: {
63
+ stopOpacity: 1,
64
+ stopColor: "#02c0a7"
65
+ } }),
66
+ /* @__PURE__ */ jsx("stop", { offset: 1, style: {
67
+ stopOpacity: 1,
68
+ stopColor: "#02e097"
69
+ } })
70
+ ] }),
71
+ /* @__PURE__ */ jsx("style", { children: ".logo-plain_svg__fil8{fill:#fefefe}" })
72
+ ] }),
73
+ /* @__PURE__ */ jsx("g", { id: "logo-plain_svg__\\u56FE\\u5C42_x0020_1", children: /* @__PURE__ */ jsxs("g", { id: "logo-plain_svg___1978240863120", children: [
74
+ /* @__PURE__ */ jsx("path", { d: "M2921.92 814.37h2943.46c660.05 0 1200.11 540.04 1200.11 1200.11v669.56c-180.23 1562.84-842.69 2686.31-2539.2 2867.65h-656.9c-1403.42-112.59-2125.37-923.3-2147.58-2450.77V2014.48c0-660.07 540.04-1200.11 1200.11-1200.11z", style: {
75
+ fill: "none",
76
+ stroke: "#e62129",
77
+ strokeWidth: 23.87,
78
+ strokeMiterlimit: 22.9256
79
+ } }),
80
+ /* @__PURE__ */ jsx("path", { d: "M908.05 649.1c172.38 0 312.1 139.73 312.1 312.1 0 172.38-139.73 312.1-312.1 312.1-172.38 0-312.1-139.73-312.1-312.1 0-172.38 139.73-312.1 312.1-312.1zm15081.56 0c-172.38 0-312.1 139.73-312.1 312.1 0 172.38 139.73 312.1 312.1 312.1 172.38 0 312.1-139.73 312.1-312.1 0-172.38-139.73-312.1-312.1-312.1zM16304.76.03H11565.2c-332.34-.73-635.61 30.83-892.17 114.33-1164.61 314.95-1684.86 539.69-2204.5 542.55-529.24 2.92-1057.71-221.77-2243.89-542.55C5968.08 30.86 5664.81-.7 5332.47.03H592.91C266.8.03.01 266.82.01 592.93v727.65c0 326.11 262.25 574.15 588.16 562.9 244.44-8.44 379.43 161.6 368.56 407.41v1401.3c844.04 3884.05 6459.63 3705.54 6872.25-983.68 37.55-479.97 225.37-745.7 619.85-795.03 394.48 49.33 582.3 315.06 619.85 795.03 221.1 2512.67 1570.99 3564.6 3624.76 3705.62 1575.25-121.99 2822.57-766.6 3247.49-2721.94v-1401.3c-10.86-245.81 124.13-415.84 368.56-407.41 325.91 11.24 588.16-236.8 588.16-562.9V592.93c0-326.11-266.79-592.9-592.9-592.9z", style: {
81
+ fill: "#332c2b"
82
+ } }),
83
+ /* @__PURE__ */ jsx("path", { d: "M4404.53 5551.69h138.96c1696.5-181.34 2358.97-1304.82 2539.2-2867.65v-669.56c0-660.07-540.06-1200.11-1200.11-1200.11H2939.12c-660.07 0-1200.11 540.04-1200.11 1200.11v1086.44c22.21 1527.47 744.16 2338.19 2147.58 2450.77h517.94z", style: {
84
+ fill: "#f63d55"
85
+ } }),
86
+ /* @__PURE__ */ jsx("path", { d: "M2884.03 3833.6c-562.03-552.91 337.59-1229.84 756.52-784.77l-668.1-718.53C2724 1698.38 2875.6 1176.8 3604.09 814.36h-682.18c-660.07 0-1200.11 540.04-1200.11 1200.11v1086.44c22.21 1527.47 744.16 2338.19 2147.58 2450.77h517.94c447.09-261.52 828.85-610.16 1124.32-1073.8-192.91 108.48-371.35 123.1-530.58 12.63-269.77 225.61-533.22 868.1-809.3 676.82L2884.01 3833.59z", style: {
87
+ fill: "url(#logo-plain_svg__id3)"
88
+ } }),
89
+ /* @__PURE__ */ jsx("path", { d: "M12967.79 5585.01c1654.02-184.97 2231.4-1330.91 2306.7-2925.01l-43.57-682.94c-42.95-673.27-608.37-1224.11-1256.49-1224.11H11084.21c-648.13 0-1143.27 550.85-1100.32 1224.11l70.69 1108.16c121.19 1558.01 882.83 2384.94 2268.19 2499.78h645.03z", style: {
90
+ fill: "url(#logo-plain_svg__id1)"
91
+ } }),
92
+ /* @__PURE__ */ jsx("circle", { cx: 3266.42, cy: 4767.17, r: 119.53, style: {
93
+ fill: "#f3a04e"
94
+ } }),
95
+ /* @__PURE__ */ jsx("path", { d: "M11243.45 3832.57c-587.85-563.96 251.45-1254.43 691.78-800.45l-702.77-732.9c-285.07-644.56-170.14-1176.57 521.59-1546.26h-669.84c-648.13 0-1143.27 550.85-1100.32 1224.11l70.69 1108.16c121.19 1558.01 882.83 2384.94 2268.19 2499.78h508.57c422-266.75 774.17-622.36 1034.13-1095.27-182.37 110.65-356.62 125.56-520.16 12.88-250.21 230.12-467.1 885.46-750.63 690.36l-1351.23-1360.42z", style: {
96
+ fill: "url(#logo-plain_svg__id0)",
97
+ stroke: "#06b1ab",
98
+ strokeWidth: 9.1,
99
+ strokeMiterlimit: 22.9256
100
+ } }),
101
+ /* @__PURE__ */ jsx("path", { d: "M11754.05 752.96c-691.73 369.69-806.66 901.7-521.59 1546.26l702.77 732.9c-440.33-453.98-1279.63 236.49-691.78 800.45 1571.66 1582.35 780.78 887.85 1587.88 1752.45h136.46c1654.02-184.97 2231.4-1330.91 2306.7-2925.01l-43.57-682.94c-42.95-673.27-608.37-1224.11-1256.49-1224.11h-2220.38z", style: {
102
+ fill: "url(#logo-plain_svg__id4)"
103
+ } }),
104
+ /* @__PURE__ */ jsx("circle", { cx: 13725.89, cy: 2247.09, r: 867.65, className: "logo-plain_svg__fil8" }),
105
+ /* @__PURE__ */ jsx("circle", { cx: 11745.99, cy: 4944.33, r: 119.53, style: {
106
+ fill: "#52c2f1"
107
+ } }),
108
+ /* @__PURE__ */ jsx("path", { d: "M3604.1 814.37c-728.5 362.44-880.09 884.02-631.64 1515.94l668.1 718.53c-418.94-445.08-1318.56 231.85-756.52 784.77l1503.3 1718.08h138.96c1696.5-181.34 2358.97-1304.82 2539.2-2867.65v-669.56c0-660.07-540.06-1200.11-1200.11-1200.11H3604.11z", style: {
109
+ fill: "url(#logo-plain_svg__id2)"
110
+ } }),
111
+ /* @__PURE__ */ jsx("path", { d: "m3602.42 3012.57-2.01-1.79-1.22-1c-433.3-363.07-1259.33 288.49-715.16 823.82l1503.3 1718.08h138.96c366.16-39.14 684.05-122.25 959.42-244.11l-1883.3-2295z", style: {
112
+ fill: "#f9483e"
113
+ } }),
114
+ /* @__PURE__ */ jsx("circle", { cx: 5652.09, cy: 2247.09, r: 867.65, className: "logo-plain_svg__fil8" }),
115
+ /* @__PURE__ */ jsx("circle", { cx: 5669.32, cy: 4261.82, r: 86.65, style: {
116
+ fill: "#f7b873"
117
+ } }),
118
+ /* @__PURE__ */ jsx("circle", { cx: 3775.08, cy: 4120.55, r: 174.77, className: "logo-plain_svg__fil8" }),
119
+ /* @__PURE__ */ jsx("path", { d: "m11770.33 2919.17 123.64 74.69c7.2 5.99 14.32 12.27 21.35 18.8l1988.29 2318.88c-264.55 126.79-574.49 213.07-935.82 253.47h-136.46c-807.1-864.6-16.22-170.1-1587.88-1752.45-520.29-499.15 77.34-1097.23 526.88-913.39z", style: {
120
+ fill: "#06b1ab"
121
+ } }),
122
+ /* @__PURE__ */ jsx("circle", { cx: 12254.65, cy: 4297.71, r: 174.77, className: "logo-plain_svg__fil8" })
123
+ ] }) })
124
+ ] }));
125
+ var logo_plain_default = SvgLogoPlain;
126
+ export {
127
+ logo_plain_default as default
128
+ };
@@ -0,0 +1,128 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ import { jsx, jsxs } from "react/jsx-runtime";
21
+ import * as React from "react";
22
+ const SvgLogoPlain2 = (props) => /* @__PURE__ */ jsxs("svg", __spreadProps(__spreadValues({ xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", xmlSpace: "preserve", width: 535.041, height: 203.6, style: {
23
+ shapeRendering: "geometricPrecision",
24
+ textRendering: "geometricPrecision",
25
+ imageRendering: "optimizeQuality",
26
+ fillRule: "evenodd",
27
+ clipRule: "evenodd"
28
+ }, viewBox: "0 0 16897.65 6430.11" }, props), { children: [
29
+ /* @__PURE__ */ jsxs("defs", { children: [
30
+ /* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain2_svg__id0", x1: 11103.21, x2: 10930.41, y1: 5027.34, y2: 1211.98, gradientUnits: "userSpaceOnUse", children: [
31
+ /* @__PURE__ */ jsx("stop", { offset: 0, style: {
32
+ stopOpacity: 1,
33
+ stopColor: "#0a77d4"
34
+ } }),
35
+ /* @__PURE__ */ jsx("stop", { offset: 1, style: {
36
+ stopOpacity: 1,
37
+ stopColor: "#00b1e0"
38
+ } })
39
+ ] }),
40
+ /* @__PURE__ */ jsx("linearGradient", { xlinkHref: "#logo-plain2_svg__id0", id: "logo-plain2_svg__id1", x1: 11407.32, x2: 11286.4, y1: 5023.83, y2: 1215.5, gradientUnits: "userSpaceOnUse" }),
41
+ /* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain2_svg__id2", x1: 6311.87, x2: 3547.5, y1: 4699.25, y2: 1677.39, gradientUnits: "userSpaceOnUse", children: [
42
+ /* @__PURE__ */ jsx("stop", { offset: 0, style: {
43
+ stopOpacity: 1,
44
+ stopColor: "#f65926"
45
+ } }),
46
+ /* @__PURE__ */ jsx("stop", { offset: 1, style: {
47
+ stopOpacity: 1,
48
+ stopColor: "#f0ab1f"
49
+ } })
50
+ ] }),
51
+ /* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain2_svg__id3", x1: 3105.35, x2: 2612.67, y1: 5075.61, y2: 1311.04, gradientUnits: "userSpaceOnUse", children: [
52
+ /* @__PURE__ */ jsx("stop", { offset: 0, style: {
53
+ stopOpacity: 1,
54
+ stopColor: "#e52652"
55
+ } }),
56
+ /* @__PURE__ */ jsx("stop", { offset: 1, style: {
57
+ stopOpacity: 1,
58
+ stopColor: "#ff4956"
59
+ } })
60
+ ] }),
61
+ /* @__PURE__ */ jsxs("linearGradient", { id: "logo-plain2_svg__id4", x1: 14599.77, x2: 12e3, y1: 4808.34, y2: 1573.25, gradientUnits: "userSpaceOnUse", children: [
62
+ /* @__PURE__ */ jsx("stop", { offset: 0, style: {
63
+ stopOpacity: 1,
64
+ stopColor: "#02c0a7"
65
+ } }),
66
+ /* @__PURE__ */ jsx("stop", { offset: 1, style: {
67
+ stopOpacity: 1,
68
+ stopColor: "#02e097"
69
+ } })
70
+ ] }),
71
+ /* @__PURE__ */ jsx("style", { children: ".logo-plain2_svg__fil8{fill:#fefefe}" })
72
+ ] }),
73
+ /* @__PURE__ */ jsx("g", { id: "logo-plain2_svg__\\u56FE\\u5C42_x0020_1", children: /* @__PURE__ */ jsxs("g", { id: "logo-plain2_svg___1978240863120", children: [
74
+ /* @__PURE__ */ jsx("path", { d: "M2921.92 814.37h2943.46c660.05 0 1200.11 540.04 1200.11 1200.11v669.56c-180.23 1562.84-842.69 2686.31-2539.2 2867.65h-656.9c-1403.42-112.59-2125.37-923.3-2147.58-2450.77V2014.48c0-660.07 540.04-1200.11 1200.11-1200.11z", style: {
75
+ fill: "none",
76
+ stroke: "#e62129",
77
+ strokeWidth: 23.87,
78
+ strokeMiterlimit: 22.9256
79
+ } }),
80
+ /* @__PURE__ */ jsx("path", { d: "M908.05 649.1c172.38 0 312.1 139.73 312.1 312.1 0 172.38-139.73 312.1-312.1 312.1-172.38 0-312.1-139.73-312.1-312.1 0-172.38 139.73-312.1 312.1-312.1zm15081.56 0c-172.38 0-312.1 139.73-312.1 312.1 0 172.38 139.73 312.1 312.1 312.1 172.38 0 312.1-139.73 312.1-312.1 0-172.38-139.73-312.1-312.1-312.1zM16304.76.03H11565.2c-332.34-.73-635.61 30.83-892.17 114.33-1164.61 314.95-1684.86 539.69-2204.5 542.55-529.24 2.92-1057.71-221.77-2243.89-542.55C5968.08 30.86 5664.81-.7 5332.47.03H592.91C266.8.03.01 266.82.01 592.93v727.65c0 326.11 262.25 574.15 588.16 562.9 244.44-8.44 379.43 161.6 368.56 407.41v1401.3c844.04 3884.05 6459.63 3705.54 6872.25-983.68 37.55-479.97 225.37-745.7 619.85-795.03 394.48 49.33 582.3 315.06 619.85 795.03 221.1 2512.67 1570.99 3564.6 3624.76 3705.62 1575.25-121.99 2822.57-766.6 3247.49-2721.94v-1401.3c-10.86-245.81 124.13-415.84 368.56-407.41 325.91 11.24 588.16-236.8 588.16-562.9V592.93c0-326.11-266.79-592.9-592.9-592.9z", style: {
81
+ fill: "#332c2b"
82
+ } }),
83
+ /* @__PURE__ */ jsx("path", { d: "M4404.53 5551.69h138.96c1696.5-181.34 2358.97-1304.82 2539.2-2867.65v-669.56c0-660.07-540.06-1200.11-1200.11-1200.11H2939.12c-660.07 0-1200.11 540.04-1200.11 1200.11v1086.44c22.21 1527.47 744.16 2338.19 2147.58 2450.77h517.94z", style: {
84
+ fill: "#f63d55"
85
+ } }),
86
+ /* @__PURE__ */ jsx("path", { d: "M2884.03 3833.6c-562.03-552.91 337.59-1229.84 756.52-784.77l-668.1-718.53C2724 1698.38 2875.6 1176.8 3604.09 814.36h-682.18c-660.07 0-1200.11 540.04-1200.11 1200.11v1086.44c22.21 1527.47 744.16 2338.19 2147.58 2450.77h517.94c447.09-261.52 828.85-610.16 1124.32-1073.8-192.91 108.48-371.35 123.1-530.58 12.63-269.77 225.61-533.22 868.1-809.3 676.82L2884.01 3833.59z", style: {
87
+ fill: "url(#logo-plain2_svg__id3)"
88
+ } }),
89
+ /* @__PURE__ */ jsx("path", { d: "M12967.79 5585.01c1654.02-184.97 2231.4-1330.91 2306.7-2925.01l-43.57-682.94c-42.95-673.27-608.37-1224.11-1256.49-1224.11H11084.21c-648.13 0-1143.27 550.85-1100.32 1224.11l70.69 1108.16c121.19 1558.01 882.83 2384.94 2268.19 2499.78h645.03z", style: {
90
+ fill: "url(#logo-plain2_svg__id1)"
91
+ } }),
92
+ /* @__PURE__ */ jsx("circle", { cx: 3266.42, cy: 4767.17, r: 119.53, style: {
93
+ fill: "#f3a04e"
94
+ } }),
95
+ /* @__PURE__ */ jsx("path", { d: "M11243.45 3832.57c-587.85-563.96 251.45-1254.43 691.78-800.45l-702.77-732.9c-285.07-644.56-170.14-1176.57 521.59-1546.26h-669.84c-648.13 0-1143.27 550.85-1100.32 1224.11l70.69 1108.16c121.19 1558.01 882.83 2384.94 2268.19 2499.78h508.57c422-266.75 774.17-622.36 1034.13-1095.27-182.37 110.65-356.62 125.56-520.16 12.88-250.21 230.12-467.1 885.46-750.63 690.36l-1351.23-1360.42z", style: {
96
+ fill: "url(#logo-plain2_svg__id0)",
97
+ stroke: "#06b1ab",
98
+ strokeWidth: 9.1,
99
+ strokeMiterlimit: 22.9256
100
+ } }),
101
+ /* @__PURE__ */ jsx("path", { d: "M11754.05 752.96c-691.73 369.69-806.66 901.7-521.59 1546.26l702.77 732.9c-440.33-453.98-1279.63 236.49-691.78 800.45 1571.66 1582.35 780.78 887.85 1587.88 1752.45h136.46c1654.02-184.97 2231.4-1330.91 2306.7-2925.01l-43.57-682.94c-42.95-673.27-608.37-1224.11-1256.49-1224.11h-2220.38z", style: {
102
+ fill: "url(#logo-plain2_svg__id4)"
103
+ } }),
104
+ /* @__PURE__ */ jsx("circle", { cx: 13725.89, cy: 2247.09, r: 867.65, className: "logo-plain2_svg__fil8" }),
105
+ /* @__PURE__ */ jsx("circle", { cx: 11745.99, cy: 4944.33, r: 119.53, style: {
106
+ fill: "#52c2f1"
107
+ } }),
108
+ /* @__PURE__ */ jsx("path", { d: "M3604.1 814.37c-728.5 362.44-880.09 884.02-631.64 1515.94l668.1 718.53c-418.94-445.08-1318.56 231.85-756.52 784.77l1503.3 1718.08h138.96c1696.5-181.34 2358.97-1304.82 2539.2-2867.65v-669.56c0-660.07-540.06-1200.11-1200.11-1200.11H3604.11z", style: {
109
+ fill: "url(#logo-plain2_svg__id2)"
110
+ } }),
111
+ /* @__PURE__ */ jsx("path", { d: "m3602.42 3012.57-2.01-1.79-1.22-1c-433.3-363.07-1259.33 288.49-715.16 823.82l1503.3 1718.08h138.96c366.16-39.14 684.05-122.25 959.42-244.11l-1883.3-2295z", style: {
112
+ fill: "#f9483e"
113
+ } }),
114
+ /* @__PURE__ */ jsx("circle", { cx: 5652.09, cy: 2247.09, r: 867.65, className: "logo-plain2_svg__fil8" }),
115
+ /* @__PURE__ */ jsx("circle", { cx: 5669.32, cy: 4261.82, r: 86.65, style: {
116
+ fill: "#f7b873"
117
+ } }),
118
+ /* @__PURE__ */ jsx("circle", { cx: 3775.08, cy: 4120.55, r: 174.77, className: "logo-plain2_svg__fil8" }),
119
+ /* @__PURE__ */ jsx("path", { d: "m11770.33 2919.17 123.64 74.69c7.2 5.99 14.32 12.27 21.35 18.8l1988.29 2318.88c-264.55 126.79-574.49 213.07-935.82 253.47h-136.46c-807.1-864.6-16.22-170.1-1587.88-1752.45-520.29-499.15 77.34-1097.23 526.88-913.39z", style: {
120
+ fill: "#06b1ab"
121
+ } }),
122
+ /* @__PURE__ */ jsx("circle", { cx: 12254.65, cy: 4297.71, r: 174.77, className: "logo-plain2_svg__fil8" })
123
+ ] }) })
124
+ ] }));
125
+ var logo_plain2_default = SvgLogoPlain2;
126
+ export {
127
+ logo_plain2_default as default
128
+ };
@@ -72,7 +72,11 @@ const BlackBoard = () => {
72
72
  );
73
73
  return () => {
74
74
  console.log("will destroy");
75
- app == null ? void 0 : app.destroy(true, { children: true, texture: true });
75
+ try {
76
+ app.destroy(true, { children: true, texture: true });
77
+ } catch (e) {
78
+ console.warn("destroy failed", e);
79
+ }
76
80
  };
77
81
  }, [app, screenWidth, screenHeight]);
78
82
  useEffect(() => {
@@ -13,15 +13,15 @@ const ScreenshotItem = (props) => {
13
13
  /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("img", { src: props.img }) })
14
14
  ] });
15
15
  };
16
+ const VIEW_TYPE_BLACKBOARD = "blackboard";
16
17
  const VIEW_TYPE_SCREENSHOT = "screenshot";
17
18
  const VIEW_TYPE_JSON = "json";
18
- const VIEW_TYPE_BLACKBOARD = "blackboard";
19
19
  const DetailPanel = () => {
20
20
  var _a;
21
21
  const dumpId = useInsightDump((store) => store._loadId);
22
22
  const blackboardViewAvailable = Boolean(dumpId);
23
23
  const activeTask = useExecutionDump((store) => store.activeTask);
24
- const [preferredViewType, setViewType] = useState(dumpId ? VIEW_TYPE_BLACKBOARD : VIEW_TYPE_SCREENSHOT);
24
+ const [preferredViewType, setViewType] = useState(VIEW_TYPE_BLACKBOARD);
25
25
  const viewType = preferredViewType === VIEW_TYPE_BLACKBOARD && !dumpId ? VIEW_TYPE_SCREENSHOT : preferredViewType;
26
26
  let content;
27
27
  if (!activeTask) {
@@ -18,9 +18,10 @@
18
18
  line-height: 1.5;
19
19
  }
20
20
  .detail-side .meta-kv .meta .meta-key {
21
+ font-weight: bold;
21
22
  width: 100px;
22
23
  text-align: right;
23
- padding-right: 10px;
24
+ padding-right: 16px;
24
25
  }
25
26
  .detail-side .meta-kv .meta .meta-value {
26
27
  flex: 1 1;
@@ -91,7 +92,7 @@
91
92
  color: #fff;
92
93
  background: #01204E;
93
94
  }
94
- .detail-side .context pre {
95
+ .detail-side pre {
95
96
  text-wrap: balance;
96
97
  }
97
98
  .detail-side .item-list-space-up {
@@ -135,19 +135,19 @@ const DetailSide = () => {
135
135
  const metaKVElement = MetaKV({
136
136
  data: [
137
137
  {
138
- key: "Status",
138
+ key: "status",
139
139
  content: (task == null ? void 0 : task.status) || ""
140
140
  },
141
141
  {
142
- key: "Start",
142
+ key: "start",
143
143
  content: timeStr((_a = task == null ? void 0 : task.timing) == null ? void 0 : _a.start)
144
144
  },
145
145
  {
146
- key: "End",
146
+ key: "end",
147
147
  content: timeStr((_b = task == null ? void 0 : task.timing) == null ? void 0 : _b.end)
148
148
  },
149
149
  {
150
- key: "Time Cost",
150
+ key: "time cost",
151
151
  content: timeCostStrElement((_c = task == null ? void 0 : task.timing) == null ? void 0 : _c.cost)
152
152
  }
153
153
  ]
@@ -247,7 +247,16 @@ const DetailSide = () => {
247
247
  content: /* @__PURE__ */ jsx("pre", { className: "description-content", style: { color: "#F00" }, children: dump.error })
248
248
  }
249
249
  ) : null;
250
- const dataCard = (dump == null ? void 0 : dump.data) ? /* @__PURE__ */ jsx(Card, { liteMode: true, onMouseEnter: noop, onMouseLeave: noop, content: /* @__PURE__ */ jsx("pre", { children: kv(dump.data) }) }) : null;
250
+ const dataCard = (dump == null ? void 0 : dump.data) ? /* @__PURE__ */ jsx(
251
+ Card,
252
+ {
253
+ liteMode: true,
254
+ onMouseEnter: noop,
255
+ onMouseLeave: noop,
256
+ content: /* @__PURE__ */ jsx("pre", { children: JSON.stringify(dump.data, void 0, 2) })
257
+ }
258
+ ) : null;
259
+ console.log("dump is", dump);
251
260
  const plans = (_h = task == null ? void 0 : task.output) == null ? void 0 : _h.plans;
252
261
  let timelineData = [];
253
262
  if (plans) {
@@ -8,7 +8,7 @@
8
8
  text-align: center;
9
9
  border: 1px solid #CCCCCC;
10
10
  box-sizing: border-box;
11
- background: #ECECEC;
11
+ background: #f7f7f7;
12
12
  box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.2);
13
13
  }
14
14
  .global-hover-preview img {
@@ -7,11 +7,16 @@ const GlobalHoverPreview = () => {
7
7
  var _a;
8
8
  const wrapperRef = useRef(null);
9
9
  const hoverTask = useExecutionDump((store) => store.hoverTask);
10
+ const hoverTimestamp = useExecutionDump((store) => store.hoverTimestamp);
10
11
  const hoverPreviewConfig = useExecutionDump((store) => store.hoverPreviewConfig);
11
12
  const [imageW, setImageW] = useState(size);
12
13
  const [imageH, setImageH] = useState(size);
13
14
  const images = (_a = hoverTask == null ? void 0 : hoverTask.recorder) == null ? void 0 : _a.filter((item) => {
14
- return item.screenshot;
15
+ let valid = Boolean(item.screenshot);
16
+ if (hoverTimestamp) {
17
+ valid = valid && item.ts >= hoverTimestamp;
18
+ }
19
+ return valid;
15
20
  }).map((item) => item.screenshot);
16
21
  const { x, y } = hoverPreviewConfig || {};
17
22
  let left = 0;
@@ -6,11 +6,12 @@
6
6
  height: 100%;
7
7
  border-right: 1px solid #CCCCCC;
8
8
  overflow: auto;
9
- background: #ECECEC;
9
+ background: #f7f7f7;
10
10
  }
11
11
  .side-bar .brand {
12
12
  padding: 10px 5px;
13
13
  cursor: pointer;
14
+ display: flex;
14
15
  }
15
16
  .side-bar .task-meta-section {
16
17
  margin-top: 6px;
@@ -12,11 +12,11 @@ import {
12
12
  import { Button } from "antd";
13
13
  import PanelTitle from "./panel-title";
14
14
  import { timeCostStrElement } from "./misc";
15
- import logo from "../assets/logo-plain2.16842bbc.svg";
15
+ import Logo from "./assets/logo-plain2.js";
16
16
  import { useAllCurrentTasks, useExecutionDump } from "./store";
17
17
  import { typeStr } from "../utils";
18
18
  const SideItem = (props) => {
19
- var _a, _b;
19
+ var _a, _b, _c;
20
20
  const { task, onClick, selected } = props;
21
21
  const selectedClass = selected ? "selected" : "";
22
22
  let statusIcon = /* @__PURE__ */ jsx(MinusOutlined, {});
@@ -35,10 +35,15 @@ const SideItem = (props) => {
35
35
  if ((_a = task.timing) == null ? void 0 : _a.cost) {
36
36
  statusText = timeCostStrElement(task.timing.cost);
37
37
  }
38
- const contentRow = task.type === "Planning" ? /* @__PURE__ */ jsxs("div", { className: "side-item-content", children: [
39
- (_b = task.param) == null ? void 0 : _b.userPrompt,
40
- " "
41
- ] }) : null;
38
+ let contentRow;
39
+ if (task.type === "Planning") {
40
+ contentRow = /* @__PURE__ */ jsx("div", { className: "side-item-content", children: (_b = task.param) == null ? void 0 : _b.userPrompt });
41
+ } else if (task.type === "Insight" && task.subType === "Query") {
42
+ const demand = (_c = task.param) == null ? void 0 : _c.dataDemand;
43
+ const contentToShow = typeof demand === "string" ? demand : JSON.stringify(demand);
44
+ contentRow = /* @__PURE__ */ jsx("div", { className: "side-item-content", children: contentToShow });
45
+ } else {
46
+ }
42
47
  return /* @__PURE__ */ jsxs(
43
48
  "div",
44
49
  {
@@ -67,7 +72,7 @@ const SideItem = (props) => {
67
72
  }
68
73
  );
69
74
  };
70
- const Sidebar = () => {
75
+ const Sidebar = (props) => {
71
76
  const groupedDumps = useExecutionDump((store) => store.dump);
72
77
  const setActiveTask = useExecutionDump((store) => store.setActiveTask);
73
78
  const activeTask = useExecutionDump((store) => store.activeTask);
@@ -151,14 +156,16 @@ const Sidebar = () => {
151
156
  }) : /* @__PURE__ */ jsx("span", { children: "no tasks" });
152
157
  return /* @__PURE__ */ jsxs("div", { className: "side-bar", children: [
153
158
  /* @__PURE__ */ jsxs("div", { className: "top-controls", children: [
154
- /* @__PURE__ */ jsx("div", { className: "brand", onClick: reset, children: /* @__PURE__ */ jsx(
155
- "img",
159
+ /* @__PURE__ */ jsx("div", { className: "brand", onClick: reset, style: { display: (props == null ? void 0 : props.hideLogo) ? "none" : "flex" }, children: /* @__PURE__ */ jsx(
160
+ Logo,
156
161
  {
157
- src: logo,
158
- alt: "Logo",
159
162
  style: { width: 70, height: 70, margin: "auto" },
160
163
  onClick: () => {
161
- location.reload();
164
+ if (props.logoAction) {
165
+ props.logoAction();
166
+ } else {
167
+ location.reload();
168
+ }
162
169
  }
163
170
  }
164
171
  ) }),
@@ -28,11 +28,12 @@ const useBlackboardPreference = create((set) => ({
28
28
  set({ textsVisible: visible });
29
29
  }
30
30
  }));
31
- const useExecutionDump = create((set) => {
31
+ const useExecutionDump = create((set, get) => {
32
32
  const initData = {
33
33
  dump: null,
34
34
  activeTask: null,
35
35
  hoverTask: null,
36
+ hoverTimestamp: null,
36
37
  hoverPreviewConfig: null
37
38
  };
38
39
  const syncToInsightDump = (dump) => {
@@ -51,22 +52,22 @@ const useExecutionDump = create((set) => {
51
52
  });
52
53
  for (const item of dump) {
53
54
  if (item.executions.length > 0 && item.executions[0].tasks.length > 0) {
54
- set({ activeTask: item.executions[0].tasks[0] });
55
+ get().setActiveTask(item.executions[0].tasks[0]);
55
56
  break;
56
57
  }
57
58
  }
58
59
  },
59
60
  setActiveTask(task) {
60
- var _a, _b;
61
61
  set({ activeTask: task });
62
- if ((_b = (_a = task.log) == null ? void 0 : _a.dump) == null ? void 0 : _b.matchedElement) {
62
+ console.log("task set", task);
63
+ if (task.type === "Insight") {
63
64
  syncToInsightDump(task.log.dump);
64
65
  } else {
65
66
  resetInsightDump();
66
67
  }
67
68
  },
68
- setHoverTask(task) {
69
- set({ hoverTask: task });
69
+ setHoverTask(task, timestamp) {
70
+ set({ hoverTask: task, hoverTimestamp: timestamp || null });
70
71
  },
71
72
  setHoverPreviewConfig(config) {
72
73
  if (config) {
@@ -68,7 +68,7 @@ const TimelineWidget = (props) => {
68
68
  const maxTime = allScreenshots[allScreenshots.length - 1].timeOffset;
69
69
  const sizeRatio = 2;
70
70
  const titleBg = 14540253;
71
- const sideBg = 15527148;
71
+ const sideBg = 16250871;
72
72
  const gridTextColor = 0;
73
73
  const shotBorderColor = 7829367;
74
74
  const gridLineColor = 13421772;
@@ -394,7 +394,7 @@ const Timeline = () => {
394
394
  const refBounding = (_a = wrapper.current) == null ? void 0 : _a.getBoundingClientRect();
395
395
  const task = idTaskMap[item.id];
396
396
  if (task) {
397
- setHoverTask(task);
397
+ setHoverTask(task, item.timeOffset + startingTime);
398
398
  setHoverPreviewConfig({
399
399
  x: mouseX + ((refBounding == null ? void 0 : refBounding.left) || 0),
400
400
  y: ((refBounding == null ? void 0 : refBounding.bottom) || 1) - 1
package/dist/es/index.css CHANGED
@@ -2,13 +2,9 @@ html,
2
2
  body {
3
3
  padding: 0;
4
4
  margin: 0;
5
- font-family:
6
- PingFang SC,
7
- Hiragino Sans GB,
8
- Microsoft YaHei,
9
- Arial,
10
- sans-serif;
11
- font-size: 14px;
5
+ }
6
+ .rspress-nav {
7
+ transition: 0.2s;
12
8
  }
13
9
  :root {
14
10
  --modern-sidebar-width: 0 !important;
@@ -37,6 +33,15 @@ footer.mt-8 {
37
33
  flex-direction: column;
38
34
  height: 100%;
39
35
  color: #000;
36
+ font-family:
37
+ PingFang SC,
38
+ Hiragino Sans GB,
39
+ Microsoft YaHei,
40
+ Arial,
41
+ sans-serif;
42
+ font-size: 14px;
43
+ border-top: 1px solid #CCCCCC;
44
+ border-bottom: 1px solid #CCCCCC;
40
45
  }
41
46
  .ant-layout {
42
47
  flex-grow: 1;
@@ -54,7 +59,7 @@ footer.mt-8 {
54
59
  flex-direction: row;
55
60
  flex-grow: 1;
56
61
  overflow: hidden;
57
- background: #ECECEC;
62
+ background: #f7f7f7;
58
63
  }
59
64
  .main-right.uploader-wrapper {
60
65
  box-sizing: border-box;
@@ -74,7 +79,7 @@ footer.mt-8 {
74
79
  .main-right .main-canvas-container {
75
80
  flex-grow: 1;
76
81
  height: 100%;
77
- background: #F5F5F5;
82
+ background: #ffffff;
78
83
  overflow-x: hidden;
79
84
  overflow-y: scroll;
80
85
  border-left: 1px solid #CCCCCC;