@perses-dev/tracing-gantt-chart-plugin 0.13.0 → 0.14.0-beta.2

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 (223) hide show
  1. package/__mf/js/{TracingGanttChart.ca3d72b7.js → TracingGanttChart.4460ff1c.js} +4 -4
  2. package/__mf/js/async/121.5b3411ef.js +2 -0
  3. package/__mf/js/async/192.b0550d58.js +1 -0
  4. package/__mf/js/async/2.2a545358.js +1 -0
  5. package/__mf/js/async/235.831bea3e.js +1 -0
  6. package/__mf/js/async/247.e4d2c197.js +1 -0
  7. package/__mf/js/async/274.eee92e86.js +2 -0
  8. package/__mf/js/async/356.43c6ada2.js +1 -0
  9. package/__mf/js/async/392.a3f49cf0.js +2 -0
  10. package/__mf/js/async/407.6e0c3fb4.js +4 -0
  11. package/__mf/js/async/407.6e0c3fb4.js.LICENSE.txt +9 -0
  12. package/__mf/js/async/43.cbae1eef.js +2 -0
  13. package/__mf/js/async/436.4db73a03.js +110 -0
  14. package/__mf/js/async/470.8d6cfc01.js +2 -0
  15. package/__mf/js/async/496.9a3d3d3d.js +1 -0
  16. package/__mf/js/async/587.849f1255.js +1 -0
  17. package/__mf/js/async/588.39275df8.js +1 -0
  18. package/__mf/js/async/616.4d217c10.js +1 -0
  19. package/__mf/js/async/665.2b61216d.js +2 -0
  20. package/__mf/js/async/672.790df7d1.js +1 -0
  21. package/__mf/js/async/71.4eb8fa2f.js +1 -0
  22. package/__mf/js/async/77.27ff39b8.js +1 -0
  23. package/__mf/js/async/776.f19f62f3.js +43 -0
  24. package/__mf/js/async/{30.991f7ee4.js.LICENSE.txt → 776.f19f62f3.js.LICENSE.txt} +41 -1
  25. package/__mf/js/async/873.a00a9302.js +1 -0
  26. package/__mf/js/async/941.7ee2dbf0.js +2 -0
  27. package/__mf/js/async/968.b61d3c02.js +1 -0
  28. package/__mf/js/async/978.4227a27e.js +1 -0
  29. package/__mf/js/async/__federation_expose_TracingGanttChart.303e7806.js +1 -0
  30. package/__mf/js/async/lib-router.a8607481.js +2 -0
  31. package/__mf/js/{main.9e057781.js → main.7b791d2a.js} +2 -2
  32. package/lib/PanelActions.d.ts +3 -3
  33. package/lib/PanelActions.d.ts.map +1 -1
  34. package/lib/PanelActions.js +4 -4
  35. package/lib/PanelActions.js.map +1 -1
  36. package/lib/TracingGanttChart/DetailPane/Attributes.d.ts +4 -4
  37. package/lib/TracingGanttChart/DetailPane/Attributes.d.ts.map +1 -1
  38. package/lib/TracingGanttChart/DetailPane/Attributes.js +4 -4
  39. package/lib/TracingGanttChart/DetailPane/Attributes.js.map +1 -1
  40. package/lib/TracingGanttChart/DetailPane/DetailPane.d.ts +3 -3
  41. package/lib/TracingGanttChart/DetailPane/DetailPane.d.ts.map +1 -1
  42. package/lib/TracingGanttChart/DetailPane/DetailPane.js +6 -6
  43. package/lib/TracingGanttChart/DetailPane/DetailPane.js.map +1 -1
  44. package/lib/TracingGanttChart/DetailPane/SpanEvents.d.ts +3 -3
  45. package/lib/TracingGanttChart/DetailPane/SpanEvents.d.ts.map +1 -1
  46. package/lib/TracingGanttChart/DetailPane/SpanEvents.js +7 -7
  47. package/lib/TracingGanttChart/DetailPane/SpanEvents.js.map +1 -1
  48. package/lib/TracingGanttChart/DetailPane/SpanLinks.d.ts +3 -3
  49. package/lib/TracingGanttChart/DetailPane/SpanLinks.d.ts.map +1 -1
  50. package/lib/TracingGanttChart/DetailPane/SpanLinks.js +4 -4
  51. package/lib/TracingGanttChart/DetailPane/SpanLinks.js.map +1 -1
  52. package/lib/TracingGanttChart/GanttTable/GanttTable.d.ts +4 -4
  53. package/lib/TracingGanttChart/GanttTable/GanttTable.d.ts.map +1 -1
  54. package/lib/TracingGanttChart/GanttTable/GanttTable.js +8 -8
  55. package/lib/TracingGanttChart/GanttTable/GanttTable.js.map +1 -1
  56. package/lib/TracingGanttChart/GanttTable/GanttTableHeader.d.ts +3 -3
  57. package/lib/TracingGanttChart/GanttTable/GanttTableHeader.d.ts.map +1 -1
  58. package/lib/TracingGanttChart/GanttTable/GanttTableHeader.js +3 -3
  59. package/lib/TracingGanttChart/GanttTable/GanttTableHeader.js.map +1 -1
  60. package/lib/TracingGanttChart/GanttTable/GanttTableProvider.d.ts +1 -1
  61. package/lib/TracingGanttChart/GanttTable/GanttTableProvider.d.ts.map +1 -1
  62. package/lib/TracingGanttChart/GanttTable/GanttTableProvider.js +2 -2
  63. package/lib/TracingGanttChart/GanttTable/GanttTableProvider.js.map +1 -1
  64. package/lib/TracingGanttChart/GanttTable/GanttTableRow.d.ts +3 -3
  65. package/lib/TracingGanttChart/GanttTable/GanttTableRow.d.ts.map +1 -1
  66. package/lib/TracingGanttChart/GanttTable/GanttTableRow.js +5 -5
  67. package/lib/TracingGanttChart/GanttTable/GanttTableRow.js.map +1 -1
  68. package/lib/TracingGanttChart/GanttTable/ResizableDivider.d.ts +1 -1
  69. package/lib/TracingGanttChart/GanttTable/ResizableDivider.d.ts.map +1 -1
  70. package/lib/TracingGanttChart/GanttTable/ResizableDivider.js +3 -3
  71. package/lib/TracingGanttChart/GanttTable/ResizableDivider.js.map +1 -1
  72. package/lib/TracingGanttChart/GanttTable/SpanDuration.d.ts +4 -4
  73. package/lib/TracingGanttChart/GanttTable/SpanDuration.d.ts.map +1 -1
  74. package/lib/TracingGanttChart/GanttTable/SpanDuration.js +4 -4
  75. package/lib/TracingGanttChart/GanttTable/SpanDuration.js.map +1 -1
  76. package/lib/TracingGanttChart/GanttTable/SpanIndents.d.ts +2 -2
  77. package/lib/TracingGanttChart/GanttTable/SpanIndents.d.ts.map +1 -1
  78. package/lib/TracingGanttChart/GanttTable/SpanIndents.js +5 -5
  79. package/lib/TracingGanttChart/GanttTable/SpanIndents.js.map +1 -1
  80. package/lib/TracingGanttChart/GanttTable/SpanLinksButton.d.ts +3 -3
  81. package/lib/TracingGanttChart/GanttTable/SpanLinksButton.d.ts.map +1 -1
  82. package/lib/TracingGanttChart/GanttTable/SpanLinksButton.js +5 -5
  83. package/lib/TracingGanttChart/GanttTable/SpanLinksButton.js.map +1 -1
  84. package/lib/TracingGanttChart/GanttTable/SpanName.d.ts +3 -3
  85. package/lib/TracingGanttChart/GanttTable/SpanName.d.ts.map +1 -1
  86. package/lib/TracingGanttChart/GanttTable/SpanName.js +5 -5
  87. package/lib/TracingGanttChart/GanttTable/SpanName.js.map +1 -1
  88. package/lib/TracingGanttChart/MiniGanttChart/Canvas.d.ts +4 -4
  89. package/lib/TracingGanttChart/MiniGanttChart/Canvas.d.ts.map +1 -1
  90. package/lib/TracingGanttChart/MiniGanttChart/Canvas.js +8 -8
  91. package/lib/TracingGanttChart/MiniGanttChart/Canvas.js.map +1 -1
  92. package/lib/TracingGanttChart/MiniGanttChart/MiniGanttChart.d.ts +4 -4
  93. package/lib/TracingGanttChart/MiniGanttChart/MiniGanttChart.d.ts.map +1 -1
  94. package/lib/TracingGanttChart/MiniGanttChart/MiniGanttChart.js +4 -4
  95. package/lib/TracingGanttChart/MiniGanttChart/MiniGanttChart.js.map +1 -1
  96. package/lib/TracingGanttChart/MiniGanttChart/draw.d.ts +1 -1
  97. package/lib/TracingGanttChart/MiniGanttChart/draw.d.ts.map +1 -1
  98. package/lib/TracingGanttChart/MiniGanttChart/draw.js +2 -2
  99. package/lib/TracingGanttChart/MiniGanttChart/draw.js.map +1 -1
  100. package/lib/TracingGanttChart/Search.d.ts +2 -2
  101. package/lib/TracingGanttChart/Search.d.ts.map +1 -1
  102. package/lib/TracingGanttChart/Search.js +7 -7
  103. package/lib/TracingGanttChart/Search.js.map +1 -1
  104. package/lib/TracingGanttChart/Ticks.d.ts +3 -3
  105. package/lib/TracingGanttChart/Ticks.d.ts.map +1 -1
  106. package/lib/TracingGanttChart/Ticks.js +3 -3
  107. package/lib/TracingGanttChart/Ticks.js.map +1 -1
  108. package/lib/TracingGanttChart/TraceHeaderBar.d.ts +3 -3
  109. package/lib/TracingGanttChart/TraceHeaderBar.d.ts.map +1 -1
  110. package/lib/TracingGanttChart/TraceHeaderBar.js +6 -6
  111. package/lib/TracingGanttChart/TraceHeaderBar.js.map +1 -1
  112. package/lib/TracingGanttChart/TracingGanttChart.d.ts +3 -3
  113. package/lib/TracingGanttChart/TracingGanttChart.d.ts.map +1 -1
  114. package/lib/TracingGanttChart/TracingGanttChart.js +13 -11
  115. package/lib/TracingGanttChart/TracingGanttChart.js.map +1 -1
  116. package/lib/TracingGanttChart/palette.js +1 -1
  117. package/lib/TracingGanttChart/palette.js.map +1 -1
  118. package/lib/TracingGanttChart/trace.d.ts +2 -2
  119. package/lib/TracingGanttChart/trace.d.ts.map +1 -1
  120. package/lib/TracingGanttChart/trace.js +1 -1
  121. package/lib/TracingGanttChart/trace.js.map +1 -1
  122. package/lib/TracingGanttChart/utils.d.ts +3 -3
  123. package/lib/TracingGanttChart/utils.d.ts.map +1 -1
  124. package/lib/TracingGanttChart/utils.js +2 -2
  125. package/lib/TracingGanttChart/utils.js.map +1 -1
  126. package/lib/TracingGanttChart.d.ts +3 -3
  127. package/lib/TracingGanttChart.d.ts.map +1 -1
  128. package/lib/TracingGanttChart.js +3 -3
  129. package/lib/TracingGanttChart.js.map +1 -1
  130. package/lib/TracingGanttChartPanel.d.ts +4 -4
  131. package/lib/TracingGanttChartPanel.d.ts.map +1 -1
  132. package/lib/TracingGanttChartPanel.js +4 -4
  133. package/lib/TracingGanttChartPanel.js.map +1 -1
  134. package/lib/bootstrap.js +2 -2
  135. package/lib/getPluginModule.d.ts +1 -1
  136. package/lib/getPluginModule.d.ts.map +1 -1
  137. package/lib/getPluginModule.js +3 -1
  138. package/lib/getPluginModule.js.map +1 -1
  139. package/lib/index-federation.js +1 -1
  140. package/lib/index.js +4 -4
  141. package/lib/index.js.map +1 -1
  142. package/lib/setup-tests.d.ts +1 -1
  143. package/lib/setup-tests.d.ts.map +1 -1
  144. package/lib/setup-tests.js +2 -2
  145. package/lib/setup-tests.js.map +1 -1
  146. package/lib/test/convert/jaeger.d.ts +1 -1
  147. package/lib/test/convert/jaeger.d.ts.map +1 -1
  148. package/lib/test/convert/jaeger.js.map +1 -1
  149. package/mf-manifest.json +35 -34
  150. package/mf-stats.json +35 -34
  151. package/package.json +10 -10
  152. package/__mf/js/async/121.1fc97c57.js +0 -2
  153. package/__mf/js/async/177.27fced63.js +0 -1
  154. package/__mf/js/async/192.ea308602.js +0 -1
  155. package/__mf/js/async/193.6692daa9.js +0 -1
  156. package/__mf/js/async/2.c5f68593.js +0 -1
  157. package/__mf/js/async/235.4f4ad5f0.js +0 -1
  158. package/__mf/js/async/274.03fc3289.js +0 -2
  159. package/__mf/js/async/30.991f7ee4.js +0 -39
  160. package/__mf/js/async/356.2e3c02c9.js +0 -1
  161. package/__mf/js/async/392.eb9b3bb9.js +0 -2
  162. package/__mf/js/async/43.b9d7bc56.js +0 -2
  163. package/__mf/js/async/47.514dc87f.js +0 -1
  164. package/__mf/js/async/470.9743e21d.js +0 -2
  165. package/__mf/js/async/546.b40699cb.js +0 -24
  166. package/__mf/js/async/546.b40699cb.js.LICENSE.txt +0 -19
  167. package/__mf/js/async/570.9d51e826.js +0 -7
  168. package/__mf/js/async/570.9d51e826.js.LICENSE.txt +0 -39
  169. package/__mf/js/async/581.aa52d024.js +0 -1
  170. package/__mf/js/async/587.f49a06d9.js +0 -1
  171. package/__mf/js/async/588.46394f24.js +0 -1
  172. package/__mf/js/async/616.09a93b54.js +0 -1
  173. package/__mf/js/async/71.f0d71a40.js +0 -1
  174. package/__mf/js/async/873.34370b2c.js +0 -1
  175. package/__mf/js/async/887.027eb62b.js +0 -110
  176. package/__mf/js/async/941.3d671d54.js +0 -2
  177. package/__mf/js/async/968.1ac51448.js +0 -1
  178. package/__mf/js/async/978.0c50ecf5.js +0 -1
  179. package/__mf/js/async/__federation_expose_TracingGanttChart.9c074bea.js +0 -1
  180. package/__mf/js/async/lib-router.5f492283.js +0 -2
  181. package/lib/cjs/PanelActions.js +0 -88
  182. package/lib/cjs/TracingGanttChart/DetailPane/Attributes.js +0 -204
  183. package/lib/cjs/TracingGanttChart/DetailPane/DetailPane.js +0 -129
  184. package/lib/cjs/TracingGanttChart/DetailPane/SpanEvents.js +0 -113
  185. package/lib/cjs/TracingGanttChart/DetailPane/SpanLinks.js +0 -72
  186. package/lib/cjs/TracingGanttChart/GanttTable/GanttTable.js +0 -154
  187. package/lib/cjs/TracingGanttChart/GanttTable/GanttTableHeader.js +0 -64
  188. package/lib/cjs/TracingGanttChart/GanttTable/GanttTableProvider.js +0 -60
  189. package/lib/cjs/TracingGanttChart/GanttTable/GanttTableRow.js +0 -77
  190. package/lib/cjs/TracingGanttChart/GanttTable/ResizableDivider.js +0 -98
  191. package/lib/cjs/TracingGanttChart/GanttTable/SpanDuration.js +0 -81
  192. package/lib/cjs/TracingGanttChart/GanttTable/SpanIndents.js +0 -97
  193. package/lib/cjs/TracingGanttChart/GanttTable/SpanLinksButton.js +0 -108
  194. package/lib/cjs/TracingGanttChart/GanttTable/SpanName.js +0 -83
  195. package/lib/cjs/TracingGanttChart/MiniGanttChart/Canvas.js +0 -256
  196. package/lib/cjs/TracingGanttChart/MiniGanttChart/MiniGanttChart.js +0 -59
  197. package/lib/cjs/TracingGanttChart/MiniGanttChart/draw.js +0 -45
  198. package/lib/cjs/TracingGanttChart/Search.js +0 -154
  199. package/lib/cjs/TracingGanttChart/Ticks.js +0 -106
  200. package/lib/cjs/TracingGanttChart/TraceHeaderBar.js +0 -159
  201. package/lib/cjs/TracingGanttChart/TracingGanttChart.js +0 -122
  202. package/lib/cjs/TracingGanttChart/palette.js +0 -83
  203. package/lib/cjs/TracingGanttChart/trace.js +0 -137
  204. package/lib/cjs/TracingGanttChart/utils.js +0 -117
  205. package/lib/cjs/TracingGanttChart.js +0 -37
  206. package/lib/cjs/TracingGanttChartPanel.js +0 -66
  207. package/lib/cjs/bootstrap.js +0 -26
  208. package/lib/cjs/env.d.js +0 -14
  209. package/lib/cjs/gantt-chart-model.js +0 -28
  210. package/lib/cjs/getPluginModule.js +0 -39
  211. package/lib/cjs/index-federation.js +0 -55
  212. package/lib/cjs/index.js +0 -39
  213. package/lib/cjs/setup-tests.js +0 -19
  214. package/lib/cjs/test/convert/jaeger.js +0 -86
  215. /package/__mf/css/async/{570.85c2cbf6.css → 776.85c2cbf6.css} +0 -0
  216. /package/__mf/js/async/{121.1fc97c57.js.LICENSE.txt → 121.5b3411ef.js.LICENSE.txt} +0 -0
  217. /package/__mf/js/async/{274.03fc3289.js.LICENSE.txt → 274.eee92e86.js.LICENSE.txt} +0 -0
  218. /package/__mf/js/async/{392.eb9b3bb9.js.LICENSE.txt → 392.a3f49cf0.js.LICENSE.txt} +0 -0
  219. /package/__mf/js/async/{43.b9d7bc56.js.LICENSE.txt → 43.cbae1eef.js.LICENSE.txt} +0 -0
  220. /package/__mf/js/async/{887.027eb62b.js.LICENSE.txt → 436.4db73a03.js.LICENSE.txt} +0 -0
  221. /package/__mf/js/async/{470.9743e21d.js.LICENSE.txt → 470.8d6cfc01.js.LICENSE.txt} +0 -0
  222. /package/__mf/js/async/{941.3d671d54.js.LICENSE.txt → 941.7ee2dbf0.js.LICENSE.txt} +0 -0
  223. /package/__mf/js/async/{lib-router.5f492283.js.LICENSE.txt → lib-router.a8607481.js.LICENSE.txt} +0 -0
@@ -1,66 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "TracingGanttChartPanel", {
18
- enumerable: true,
19
- get: function() {
20
- return TracingGanttChartPanel;
21
- }
22
- });
23
- const _jsxruntime = require("react/jsx-runtime");
24
- const _components = require("@perses-dev/components");
25
- const _material = require("@mui/material");
26
- const _TracingGanttChart = require("./TracingGanttChart/TracingGanttChart");
27
- function TracingGanttChartPanel(props) {
28
- const { spec, queryResults } = props;
29
- const chartsTheme = (0, _components.useChartsTheme)();
30
- const contentPadding = chartsTheme.container.padding.default;
31
- if (queryResults.length > 1) {
32
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.TextOverlay, {
33
- message: "This panel does not support more than one query."
34
- });
35
- }
36
- if (queryResults[0]?.data.searchResult) {
37
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.TextOverlay, {
38
- message: "This panel does not support displaying trace search results. Please enter a trace id in the query field instead."
39
- });
40
- }
41
- const trace = queryResults[0]?.data.trace;
42
- if (!trace) {
43
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.NoDataOverlay, {
44
- resource: "trace"
45
- });
46
- }
47
- const pluginSpec = queryResults[0]?.definition.spec.plugin.spec;
48
- const datasourceName = pluginSpec?.datasource?.name;
49
- const customLinks = spec.links ? {
50
- variables: {
51
- datasourceName: datasourceName ?? ''
52
- },
53
- links: spec.links
54
- } : undefined;
55
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
56
- sx: {
57
- height: '100%',
58
- padding: `${contentPadding}px`
59
- },
60
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_TracingGanttChart.TracingGanttChart, {
61
- options: spec,
62
- customLinks: customLinks,
63
- trace: trace
64
- })
65
- });
66
- }
@@ -1,26 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- const _jsxruntime = require("react/jsx-runtime");
18
- const _react = /*#__PURE__*/ _interop_require_default(require("react"));
19
- const _client = /*#__PURE__*/ _interop_require_default(require("react-dom/client"));
20
- function _interop_require_default(obj) {
21
- return obj && obj.__esModule ? obj : {
22
- default: obj
23
- };
24
- }
25
- const root = _client.default.createRoot(document.getElementById('root'));
26
- root.render(/*#__PURE__*/ (0, _jsxruntime.jsx)(_react.default.StrictMode, {}));
package/lib/cjs/env.d.js DELETED
@@ -1,14 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- /// <reference types="@rsbuild/core/types" />
14
- "use strict";
@@ -1,28 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- /**
14
- * The Options object type supported by the TracingGanttChart panel plugin.
15
- */ // Note: The interface attributes must match schemas/tracing-gantt-chart.cue
16
- "use strict";
17
- Object.defineProperty(exports, "__esModule", {
18
- value: true
19
- });
20
- Object.defineProperty(exports, "createInitialTracingGanttChartOptions", {
21
- enumerable: true,
22
- get: function() {
23
- return createInitialTracingGanttChartOptions;
24
- }
25
- });
26
- function createInitialTracingGanttChartOptions() {
27
- return {};
28
- }
@@ -1,39 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the \"License\");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an \"AS IS\" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "getPluginModule", {
18
- enumerable: true,
19
- get: function() {
20
- return getPluginModule;
21
- }
22
- });
23
- const _packagejson = /*#__PURE__*/ _interop_require_default(require("../package.json"));
24
- function _interop_require_default(obj) {
25
- return obj && obj.__esModule ? obj : {
26
- default: obj
27
- };
28
- }
29
- function getPluginModule() {
30
- const { name, version, perses } = _packagejson.default;
31
- return {
32
- kind: 'PluginModule',
33
- metadata: {
34
- name,
35
- version
36
- },
37
- spec: perses
38
- };
39
- }
@@ -1,55 +0,0 @@
1
- "use strict";
2
- function _getRequireWildcardCache(nodeInterop) {
3
- if (typeof WeakMap !== "function") return null;
4
- var cacheBabelInterop = new WeakMap();
5
- var cacheNodeInterop = new WeakMap();
6
- return (_getRequireWildcardCache = function(nodeInterop) {
7
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
8
- })(nodeInterop);
9
- }
10
- function _interop_require_wildcard(obj, nodeInterop) {
11
- if (!nodeInterop && obj && obj.__esModule) {
12
- return obj;
13
- }
14
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
15
- return {
16
- default: obj
17
- };
18
- }
19
- var cache = _getRequireWildcardCache(nodeInterop);
20
- if (cache && cache.has(obj)) {
21
- return cache.get(obj);
22
- }
23
- var newObj = {
24
- __proto__: null
25
- };
26
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
27
- for(var key in obj){
28
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
29
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
30
- if (desc && (desc.get || desc.set)) {
31
- Object.defineProperty(newObj, key, desc);
32
- } else {
33
- newObj[key] = obj[key];
34
- }
35
- }
36
- }
37
- newObj.default = obj;
38
- if (cache) {
39
- cache.set(obj, newObj);
40
- }
41
- return newObj;
42
- }
43
- // Copyright The Perses Authors
44
- // Licensed under the Apache License, Version 2.0 (the "License");
45
- // you may not use this file except in compliance with the License.
46
- // You may obtain a copy of the License at
47
- //
48
- // http://www.apache.org/licenses/LICENSE-2.0
49
- //
50
- // Unless required by applicable law or agreed to in writing, software
51
- // distributed under the License is distributed on an "AS IS" BASIS,
52
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53
- // See the License for the specific language governing permissions and
54
- // limitations under the License.
55
- Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./bootstrap")));
package/lib/cjs/index.js DELETED
@@ -1,39 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the \"License\");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an \"AS IS\" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "getPluginModule", {
18
- enumerable: true,
19
- get: function() {
20
- return _getPluginModule.getPluginModule;
21
- }
22
- });
23
- _export_star(require("./gantt-chart-model"), exports);
24
- const _getPluginModule = require("./getPluginModule");
25
- _export_star(require("./TracingGanttChart"), exports);
26
- _export_star(require("./TracingGanttChartPanel"), exports);
27
- function _export_star(from, to) {
28
- Object.keys(from).forEach(function(k) {
29
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
30
- Object.defineProperty(to, k, {
31
- enumerable: true,
32
- get: function() {
33
- return from[k];
34
- }
35
- });
36
- }
37
- });
38
- return from;
39
- }
@@ -1,19 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- require("@testing-library/jest-dom");
18
- // Always mock e-charts during tests since we don't have a proper canvas in jsdom
19
- jest.mock('echarts/core');
@@ -1,86 +0,0 @@
1
- // Copyright The Perses Authors
2
- // Licensed under the Apache License, Version 2.0 (the "License");
3
- // you may not use this file except in compliance with the License.
4
- // You may obtain a copy of the License at
5
- //
6
- // http://www.apache.org/licenses/LICENSE-2.0
7
- //
8
- // Unless required by applicable law or agreed to in writing, software
9
- // distributed under the License is distributed on an "AS IS" BASIS,
10
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
- // See the License for the specific language governing permissions and
12
- // limitations under the License.
13
- "use strict";
14
- Object.defineProperty(exports, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports, "jaegerTraceToOTLP", {
18
- enumerable: true,
19
- get: function() {
20
- return jaegerTraceToOTLP;
21
- }
22
- });
23
- function jaegerTraceToOTLP(jaegerTrace) {
24
- return {
25
- resourceSpans: jaegerTrace.spans.map(buildResourceSpan)
26
- };
27
- }
28
- function buildResourceSpan(span) {
29
- return {
30
- resource: buildResource(span.process),
31
- scopeSpans: [
32
- {
33
- scope: {
34
- name: ''
35
- },
36
- spans: [
37
- {
38
- traceId: span.traceID,
39
- spanId: span.spanID,
40
- name: span.operationName,
41
- kind: '',
42
- startTimeUnixNano: (span.startTime * 1000).toString(),
43
- endTimeUnixNano: ((span.startTime + span.duration) * 1000).toString(),
44
- attributes: span.tags.map(buildKeyValue),
45
- events: [],
46
- status: {}
47
- }
48
- ]
49
- }
50
- ]
51
- };
52
- }
53
- function buildResource(process) {
54
- return {
55
- attributes: [
56
- {
57
- key: 'service.name',
58
- value: {
59
- stringValue: process.serviceName
60
- }
61
- },
62
- ...process.tags.map(buildKeyValue)
63
- ]
64
- };
65
- }
66
- function buildKeyValue(tag) {
67
- return {
68
- key: tag.key,
69
- value: buildAnyValue(tag)
70
- };
71
- }
72
- function buildAnyValue(tags) {
73
- switch(tags.type){
74
- case 'string':
75
- return {
76
- stringValue: tags.value
77
- };
78
- case 'int64':
79
- return {
80
- intValue: tags.value.toString()
81
- };
82
- default:
83
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
84
- throw new Error(`unknown jaeger tag type ${tags.type}`);
85
- }
86
- }