@perses-dev/timeseries-chart-plugin 0.7.0 → 0.9.0

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 (45) hide show
  1. package/__mf/js/{983.7cddb989.js → 983.b0368f8f.js} +2 -2
  2. package/__mf/js/{TimeSeriesChart.2074a1a8.js → TimeSeriesChart.33363c77.js} +3 -3
  3. package/__mf/js/async/171.598de6a9.js +7 -0
  4. package/__mf/js/async/223.def4d0a9.js +1 -0
  5. package/__mf/js/async/281.a2a87c37.js +2 -0
  6. package/__mf/js/async/359.18a264e7.js +2 -0
  7. package/__mf/js/async/359.18a264e7.js.LICENSE.txt +15 -0
  8. package/__mf/js/async/409.b4cabab7.js +1 -0
  9. package/__mf/js/async/476.45fca8d3.js +1 -0
  10. package/__mf/js/async/{754.a8adddbc.js → 755.f76e3538.js} +2 -2
  11. package/__mf/js/async/845.6d99c354.js +73 -0
  12. package/__mf/js/async/879.24def15a.js +2 -0
  13. package/__mf/js/async/{511.754bc334.js.LICENSE.txt → 879.24def15a.js.LICENSE.txt} +1 -17
  14. package/__mf/js/async/{110.e82fda83.js → 964.6dfbf211.js} +2 -2
  15. package/__mf/js/async/__federation_expose_TimeSeriesChart.1e16af77.js +1 -0
  16. package/__mf/js/main.beef92ec.js +1 -0
  17. package/lib/TimeSeriesChartBase.d.ts +22 -0
  18. package/lib/TimeSeriesChartBase.d.ts.map +1 -0
  19. package/lib/TimeSeriesChartBase.js +389 -0
  20. package/lib/TimeSeriesChartBase.js.map +1 -0
  21. package/lib/TimeSeriesChartPanel.d.ts.map +1 -1
  22. package/lib/TimeSeriesChartPanel.js +3 -2
  23. package/lib/TimeSeriesChartPanel.js.map +1 -1
  24. package/lib/cjs/TimeSeriesChartBase.js +402 -0
  25. package/lib/cjs/TimeSeriesChartPanel.js +2 -1
  26. package/lib/cjs/index.js +13 -0
  27. package/lib/index.d.ts +1 -0
  28. package/lib/index.d.ts.map +1 -1
  29. package/lib/index.js +13 -0
  30. package/lib/index.js.map +1 -1
  31. package/mf-manifest.json +39 -35
  32. package/mf-stats.json +44 -37
  33. package/package.json +4 -5
  34. package/__mf/js/async/162.5d97bc19.js +0 -73
  35. package/__mf/js/async/357.397150dd.js +0 -29
  36. package/__mf/js/async/511.754bc334.js +0 -2
  37. package/__mf/js/async/610.df049245.js +0 -1
  38. package/__mf/js/async/964.8be59ce0.js +0 -1
  39. package/__mf/js/async/996.7bede0b2.js +0 -2
  40. package/__mf/js/async/__federation_expose_TimeSeriesChart.a02bcd07.js +0 -1
  41. package/__mf/js/main.6227cfef.js +0 -1
  42. /package/__mf/js/async/{357.397150dd.js.LICENSE.txt → 171.598de6a9.js.LICENSE.txt} +0 -0
  43. /package/__mf/js/async/{996.7bede0b2.js.LICENSE.txt → 281.a2a87c37.js.LICENSE.txt} +0 -0
  44. /package/__mf/js/async/{162.5d97bc19.js.LICENSE.txt → 845.6d99c354.js.LICENSE.txt} +0 -0
  45. /package/__mf/js/async/{110.e82fda83.js.LICENSE.txt → 964.6dfbf211.js.LICENSE.txt} +0 -0
@@ -0,0 +1,402 @@
1
+ // Copyright 2025 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, "TimeSeriesChartBase", {
18
+ enumerable: true,
19
+ get: function() {
20
+ return TimeSeriesChartBase;
21
+ }
22
+ });
23
+ const _jsxruntime = require("react/jsx-runtime");
24
+ const _react = require("react");
25
+ const _material = require("@mui/material");
26
+ const _merge = /*#__PURE__*/ _interop_require_default(require("lodash/merge"));
27
+ const _isEqual = /*#__PURE__*/ _interop_require_default(require("lodash/isEqual"));
28
+ const _datefnstz = require("date-fns-tz");
29
+ const _core = require("@perses-dev/core");
30
+ const _core1 = require("echarts/core");
31
+ const _charts = require("echarts/charts");
32
+ const _components = require("echarts/components");
33
+ const _renderers = require("echarts/renderers");
34
+ const _components1 = require("@perses-dev/components");
35
+ function _interop_require_default(obj) {
36
+ return obj && obj.__esModule ? obj : {
37
+ default: obj
38
+ };
39
+ }
40
+ (0, _core1.use)([
41
+ _charts.LineChart,
42
+ _charts.BarChart,
43
+ _components.GridComponent,
44
+ _components.DatasetComponent,
45
+ _components.DataZoomComponent,
46
+ _components.MarkAreaComponent,
47
+ _components.MarkLineComponent,
48
+ _components.MarkPointComponent,
49
+ _components.TitleComponent,
50
+ _components.ToolboxComponent,
51
+ _components.TooltipComponent,
52
+ _renderers.CanvasRenderer
53
+ ]);
54
+ const TimeSeriesChartBase = /*#__PURE__*/ (0, _react.forwardRef)(function TimeChart({ height, data, seriesMapping, timeScale: timeScaleProp, yAxis, format, grid, isStackedBar = false, tooltipConfig = _components1.DEFAULT_TOOLTIP_CONFIG, noDataVariant = 'message', syncGroup, onDataZoom, onDoubleClick, __experimentalEChartsOptionsOverride }, ref) {
55
+ const { chartsTheme, enablePinning, lastTooltipPinnedCoords, setLastTooltipPinnedCoords } = (0, _components1.useChartsContext)();
56
+ const isPinningEnabled = tooltipConfig.enablePinning && enablePinning;
57
+ const chartRef = (0, _react.useRef)();
58
+ const [showTooltip, setShowTooltip] = (0, _react.useState)(true);
59
+ const [tooltipPinnedCoords, setTooltipPinnedCoords] = (0, _react.useState)(null);
60
+ const [pinnedCrosshair, setPinnedCrosshair] = (0, _react.useState)(null);
61
+ const [isDragging, setIsDragging] = (0, _react.useState)(false);
62
+ const [startX, setStartX] = (0, _react.useState)(0);
63
+ const { timeZone } = (0, _components1.useTimeZone)();
64
+ let timeScale;
65
+ if (timeScaleProp === undefined) {
66
+ const commonTimeScale = (0, _core.getCommonTimeScale)(data);
67
+ if (commonTimeScale === undefined) {
68
+ // set default to past 5 years
69
+ const today = new Date();
70
+ const pastDate = new Date(today);
71
+ pastDate.setFullYear(today.getFullYear() - 5);
72
+ const todayMs = today.getTime();
73
+ const pastDateMs = pastDate.getTime();
74
+ timeScale = {
75
+ startMs: pastDateMs,
76
+ endMs: todayMs,
77
+ stepMs: 1,
78
+ rangeMs: todayMs - pastDateMs
79
+ };
80
+ } else {
81
+ timeScale = commonTimeScale;
82
+ }
83
+ } else {
84
+ timeScale = timeScaleProp;
85
+ }
86
+ (0, _react.useImperativeHandle)(ref, ()=>{
87
+ return {
88
+ highlightSeries ({ name }) {
89
+ if (!chartRef.current) {
90
+ // when chart undef, do not highlight series when hovering over legend
91
+ return;
92
+ }
93
+ chartRef.current.dispatchAction({
94
+ type: 'highlight',
95
+ seriesId: name
96
+ });
97
+ },
98
+ clearHighlightedSeries: ()=>{
99
+ if (!chartRef.current) {
100
+ // when chart undef, do not clear highlight series
101
+ return;
102
+ }
103
+ (0, _components1.clearHighlightedSeries)(chartRef.current);
104
+ }
105
+ };
106
+ }, []);
107
+ const handleEvents = (0, _react.useMemo)(()=>{
108
+ return {
109
+ datazoom: (params)=>{
110
+ if (onDataZoom === undefined) {
111
+ setTimeout(()=>{
112
+ // workaround so unpin happens after click event
113
+ setTooltipPinnedCoords(null);
114
+ }, 10);
115
+ }
116
+ if (onDataZoom === undefined || params.batch[0] === undefined) return;
117
+ const xAxisStartValue = params.batch[0].startValue;
118
+ const xAxisEndValue = params.batch[0].endValue;
119
+ if (xAxisStartValue !== undefined && xAxisEndValue !== undefined) {
120
+ const zoomEvent = {
121
+ start: xAxisStartValue,
122
+ end: xAxisEndValue
123
+ };
124
+ onDataZoom(zoomEvent);
125
+ }
126
+ },
127
+ finished: ()=>{
128
+ if (chartRef.current !== undefined) {
129
+ (0, _components1.enableDataZoom)(chartRef.current);
130
+ }
131
+ }
132
+ };
133
+ }, [
134
+ onDataZoom,
135
+ setTooltipPinnedCoords
136
+ ]);
137
+ const { noDataOption } = chartsTheme;
138
+ const option = (0, _react.useMemo)(()=>{
139
+ // The "chart" `noDataVariant` is only used when the `timeSeries` is an
140
+ // empty array because a `null` value will throw an error.
141
+ if (data === null || data.length === 0 && noDataVariant === 'message') return noDataOption;
142
+ // Utilizes ECharts dataset so raw data is separate from series option style properties
143
+ // https://apache.github.io/echarts-handbook/en/concepts/dataset/
144
+ const dataset = [];
145
+ const isLocalTimeZone = timeZone === 'local';
146
+ data.map((d, index)=>{
147
+ const values = d.values.map(([timestamp, value])=>{
148
+ const val = value === null ? '-' : value; // echarts use '-' to represent null data
149
+ return [
150
+ isLocalTimeZone ? timestamp : (0, _datefnstz.toZonedTime)(timestamp, timeZone),
151
+ val
152
+ ];
153
+ });
154
+ dataset.push({
155
+ id: index,
156
+ source: [
157
+ ...values
158
+ ],
159
+ dimensions: [
160
+ 'time',
161
+ 'value'
162
+ ]
163
+ });
164
+ });
165
+ const updatedSeriesMapping = enablePinning && pinnedCrosshair !== null ? [
166
+ ...seriesMapping,
167
+ pinnedCrosshair
168
+ ] : seriesMapping;
169
+ const option = {
170
+ dataset: dataset,
171
+ series: updatedSeriesMapping,
172
+ xAxis: {
173
+ type: 'time',
174
+ min: isLocalTimeZone ? timeScale.startMs : (0, _datefnstz.toZonedTime)(timeScale.startMs, timeZone),
175
+ max: isLocalTimeZone ? timeScale.endMs : (0, _datefnstz.toZonedTime)(timeScale.endMs, timeZone),
176
+ axisLabel: {
177
+ hideOverlap: true,
178
+ formatter: (0, _components1.getFormattedAxisLabel)(timeScale.rangeMs ?? 0)
179
+ },
180
+ axisPointer: {
181
+ snap: false
182
+ }
183
+ },
184
+ yAxis: (0, _components1.getFormattedAxis)(yAxis, format),
185
+ animation: false,
186
+ tooltip: {
187
+ show: true,
188
+ // ECharts tooltip content hidden by default since we use custom tooltip instead.
189
+ // Stacked bar uses ECharts tooltip so subgroup data shows correctly.
190
+ showContent: isStackedBar,
191
+ trigger: isStackedBar ? 'item' : 'axis',
192
+ appendToBody: isStackedBar
193
+ },
194
+ // https://echarts.apache.org/en/option.html#axisPointer
195
+ axisPointer: {
196
+ type: 'line',
197
+ z: 0,
198
+ triggerEmphasis: false,
199
+ triggerTooltip: false,
200
+ snap: false
201
+ },
202
+ toolbox: {
203
+ feature: {
204
+ dataZoom: {
205
+ icon: null,
206
+ yAxisIndex: 'none'
207
+ }
208
+ }
209
+ },
210
+ grid
211
+ };
212
+ if (__experimentalEChartsOptionsOverride) {
213
+ return __experimentalEChartsOptionsOverride(option);
214
+ }
215
+ return option;
216
+ }, [
217
+ data,
218
+ seriesMapping,
219
+ timeScale,
220
+ yAxis,
221
+ format,
222
+ grid,
223
+ noDataOption,
224
+ __experimentalEChartsOptionsOverride,
225
+ noDataVariant,
226
+ timeZone,
227
+ isStackedBar,
228
+ enablePinning,
229
+ pinnedCrosshair
230
+ ]);
231
+ // Update adjacent charts so tooltip is unpinned when current chart is clicked.
232
+ (0, _react.useEffect)(()=>{
233
+ // Only allow pinning one tooltip at a time, subsequent tooltip click unpins previous.
234
+ // Multiple tooltips can only be pinned if Ctrl or Cmd key is pressed while clicking.
235
+ const multipleTooltipsPinned = tooltipPinnedCoords !== null && lastTooltipPinnedCoords !== null;
236
+ if (multipleTooltipsPinned) {
237
+ if (!(0, _isEqual.default)(lastTooltipPinnedCoords, tooltipPinnedCoords)) {
238
+ setTooltipPinnedCoords(null);
239
+ if (tooltipPinnedCoords !== null && pinnedCrosshair !== null) {
240
+ setPinnedCrosshair(null);
241
+ }
242
+ }
243
+ }
244
+ // tooltipPinnedCoords CANNOT be in dep array or tooltip pinning breaks in the current chart's onClick
245
+ // eslint-disable-next-line react-hooks/exhaustive-deps
246
+ }, [
247
+ lastTooltipPinnedCoords,
248
+ seriesMapping
249
+ ]);
250
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
251
+ style: {
252
+ height
253
+ },
254
+ // onContextMenu={(e) => {
255
+ // // TODO: confirm tooltip pinning works correctly on Windows, should e.preventDefault() be added here
256
+ // e.preventDefault(); // Prevent the default behaviour when right clicked
257
+ // }}
258
+ onClick: (e)=>{
259
+ // Allows user to opt-in to multi tooltip pinning when Ctrl or Cmd key held down
260
+ const isControlKeyPressed = e.ctrlKey || e.metaKey;
261
+ if (isControlKeyPressed) {
262
+ e.preventDefault();
263
+ }
264
+ // Determine where on chart canvas to plot pinned crosshair as markLine.
265
+ const pointInGrid = (0, _components1.getPointInGrid)(e.nativeEvent.offsetX, e.nativeEvent.offsetY, chartRef.current);
266
+ if (pointInGrid === null) {
267
+ return;
268
+ }
269
+ // Pin and unpin when clicking on chart canvas but not tooltip text.
270
+ if (isPinningEnabled && e.target instanceof HTMLCanvasElement) {
271
+ // Pin tooltip and update shared charts context to remember these coordinates.
272
+ const pinnedPos = {
273
+ page: {
274
+ x: e.pageX,
275
+ y: e.pageY
276
+ },
277
+ client: {
278
+ x: e.clientX,
279
+ y: e.clientY
280
+ },
281
+ plotCanvas: {
282
+ x: e.nativeEvent.offsetX,
283
+ y: e.nativeEvent.offsetY
284
+ },
285
+ target: e.target
286
+ };
287
+ setTooltipPinnedCoords((current)=>{
288
+ if (current === null) {
289
+ return pinnedPos;
290
+ } else {
291
+ setPinnedCrosshair(null);
292
+ return null;
293
+ }
294
+ });
295
+ setPinnedCrosshair((current)=>{
296
+ // Only add pinned crosshair line series when there is not one already in seriesMapping.
297
+ if (current === null) {
298
+ const cursorX = pointInGrid[0];
299
+ // Only need to loop through first dataset source since getCommonTimeScale ensures xAxis timestamps are consistent
300
+ const firstTimeSeriesValues = data[0]?.values;
301
+ const closestTimestamp = (0, _components1.getClosestTimestamp)(firstTimeSeriesValues, cursorX);
302
+ // Crosshair snaps to nearest timestamp since cursor may be slightly to left or right
303
+ const pinnedCrosshair = (0, _merge.default)({}, _components1.DEFAULT_PINNED_CROSSHAIR, {
304
+ markLine: {
305
+ data: [
306
+ {
307
+ xAxis: closestTimestamp
308
+ }
309
+ ]
310
+ }
311
+ });
312
+ return pinnedCrosshair;
313
+ } else {
314
+ // Clear previously set pinned crosshair
315
+ return null;
316
+ }
317
+ });
318
+ if (!isControlKeyPressed) {
319
+ setLastTooltipPinnedCoords(pinnedPos);
320
+ }
321
+ }
322
+ },
323
+ onMouseDown: (e)=>{
324
+ const { clientX } = e;
325
+ setIsDragging(true);
326
+ setStartX(clientX);
327
+ },
328
+ onMouseMove: (e)=>{
329
+ // Allow clicking inside tooltip to copy labels.
330
+ if (!(e.target instanceof HTMLCanvasElement)) {
331
+ return;
332
+ }
333
+ const { clientX } = e;
334
+ if (isDragging) {
335
+ const deltaX = clientX - startX;
336
+ if (deltaX > 0) {
337
+ // Hide tooltip when user drags to zoom.
338
+ setShowTooltip(false);
339
+ }
340
+ }
341
+ },
342
+ onMouseUp: ()=>{
343
+ setIsDragging(false);
344
+ setStartX(0);
345
+ setShowTooltip(true);
346
+ },
347
+ onMouseLeave: ()=>{
348
+ if (tooltipPinnedCoords === null) {
349
+ setShowTooltip(false);
350
+ }
351
+ if (chartRef.current !== undefined) {
352
+ (0, _components1.clearHighlightedSeries)(chartRef.current);
353
+ }
354
+ },
355
+ onMouseEnter: ()=>{
356
+ setShowTooltip(true);
357
+ if (chartRef.current !== undefined) {
358
+ (0, _components1.enableDataZoom)(chartRef.current);
359
+ }
360
+ },
361
+ onDoubleClick: (e)=>{
362
+ setTooltipPinnedCoords(null);
363
+ // either dispatch ECharts restore action to return to orig state or allow consumer to define behavior
364
+ if (onDoubleClick === undefined) {
365
+ if (chartRef.current !== undefined) {
366
+ (0, _components1.restoreChart)(chartRef.current);
367
+ }
368
+ } else {
369
+ onDoubleClick(e);
370
+ }
371
+ },
372
+ children: [
373
+ showTooltip === true && option.tooltip?.showContent === false && tooltipConfig.hidden !== true && /*#__PURE__*/ (0, _jsxruntime.jsx)(_components1.TimeChartTooltip, {
374
+ containerId: chartsTheme.tooltipPortalContainerId,
375
+ chartRef: chartRef,
376
+ data: data,
377
+ seriesMapping: seriesMapping,
378
+ wrapLabels: tooltipConfig.wrapLabels,
379
+ enablePinning: isPinningEnabled,
380
+ pinnedPos: tooltipPinnedCoords,
381
+ format: format,
382
+ onUnpinClick: ()=>{
383
+ // Unpins tooltip when clicking Pin icon in TooltipHeader.
384
+ setTooltipPinnedCoords(null);
385
+ // Clear previously set pinned crosshair.
386
+ setPinnedCrosshair(null);
387
+ }
388
+ }),
389
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_components1.EChart, {
390
+ sx: {
391
+ width: '100%',
392
+ height: '100%'
393
+ },
394
+ option: option,
395
+ theme: chartsTheme.echartsTheme,
396
+ onEvents: handleEvents,
397
+ _instance: chartRef,
398
+ syncGroup: syncGroup
399
+ })
400
+ ]
401
+ });
402
+ });
@@ -30,6 +30,7 @@ const _components = require("@perses-dev/components");
30
30
  const _timeserieschartmodel = require("./time-series-chart-model");
31
31
  const _datatransform = require("./utils/data-transform");
32
32
  const _palettegen = require("./utils/palette-gen");
33
+ const _TimeSeriesChartBase = require("./TimeSeriesChartBase");
33
34
  function _interop_require_default(obj) {
34
35
  return obj && obj.__esModule ? obj : {
35
36
  default: obj
@@ -324,7 +325,7 @@ function TimeSeriesChartPanel(props) {
324
325
  name: yAxis.label,
325
326
  height: height
326
327
  }),
327
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.TimeChart, {
328
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_TimeSeriesChartBase.TimeSeriesChartBase, {
328
329
  ref: chartRef,
329
330
  height: height,
330
331
  data: timeChartData,
package/lib/cjs/index.js CHANGED
@@ -1,3 +1,15 @@
1
+ // Copyright 2025 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.
1
13
  "use strict";
2
14
  Object.defineProperty(exports, "__esModule", {
3
15
  value: true
@@ -15,6 +27,7 @@ _export_star(require("./TimeSeriesChartOptionsEditorSettings"), exports);
15
27
  _export_star(require("./VisualOptionsEditor"), exports);
16
28
  _export_star(require("./YAxisOptionsEditor"), exports);
17
29
  _export_star(require("./TimeSeriesChartPanel"), exports);
30
+ _export_star(require("./TimeSeriesChartBase"), exports);
18
31
  _export_star(require("./time-series-chart-model"), exports);
19
32
  function _export_star(from, to) {
20
33
  Object.keys(from).forEach(function(k) {
package/lib/index.d.ts CHANGED
@@ -5,5 +5,6 @@ export * from './TimeSeriesChartOptionsEditorSettings';
5
5
  export * from './VisualOptionsEditor';
6
6
  export * from './YAxisOptionsEditor';
7
7
  export * from './TimeSeriesChartPanel';
8
+ export * from './TimeSeriesChartBase';
8
9
  export * from './time-series-chart-model';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wCAAwC,CAAC;AACvD,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wCAAwC,CAAC;AACvD,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
package/lib/index.js CHANGED
@@ -1,3 +1,15 @@
1
+ // Copyright 2025 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.
1
13
  export { getPluginModule } from './getPluginModule';
2
14
  export * from './TimeSeriesChart';
3
15
  export * from './QuerySettingsEditor';
@@ -5,6 +17,7 @@ export * from './TimeSeriesChartOptionsEditorSettings';
5
17
  export * from './VisualOptionsEditor';
6
18
  export * from './YAxisOptionsEditor';
7
19
  export * from './TimeSeriesChartPanel';
20
+ export * from './TimeSeriesChartBase';
8
21
  export * from './time-series-chart-model';
9
22
 
10
23
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export { getPluginModule } from './getPluginModule';\nexport * from './TimeSeriesChart';\nexport * from './QuerySettingsEditor';\nexport * from './TimeSeriesChartOptionsEditorSettings';\nexport * from './VisualOptionsEditor';\nexport * from './YAxisOptionsEditor';\nexport * from './TimeSeriesChartPanel';\nexport * from './time-series-chart-model';\n"],"names":["getPluginModule"],"mappings":"AAAA,SAASA,eAAe,QAAQ,oBAAoB;AACpD,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,yCAAyC;AACvD,cAAc,wBAAwB;AACtC,cAAc,uBAAuB;AACrC,cAAc,yBAAyB;AACvC,cAAc,4BAA4B"}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport { getPluginModule } from './getPluginModule';\nexport * from './TimeSeriesChart';\nexport * from './QuerySettingsEditor';\nexport * from './TimeSeriesChartOptionsEditorSettings';\nexport * from './VisualOptionsEditor';\nexport * from './YAxisOptionsEditor';\nexport * from './TimeSeriesChartPanel';\nexport * from './TimeSeriesChartBase';\nexport * from './time-series-chart-model';\n"],"names":["getPluginModule"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,eAAe,QAAQ,oBAAoB;AACpD,cAAc,oBAAoB;AAClC,cAAc,wBAAwB;AACtC,cAAc,yCAAyC;AACvD,cAAc,wBAAwB;AACtC,cAAc,uBAAuB;AACrC,cAAc,yBAAyB;AACvC,cAAc,wBAAwB;AACtC,cAAc,4BAA4B"}
package/mf-manifest.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "TimeSeriesChart",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.7.0",
8
+ "buildVersion": "0.9.0",
9
9
  "buildName": "@perses-dev/timeseries-chart-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/TimeSeriesChart.2074a1a8.js",
12
+ "name": "__mf/js/TimeSeriesChart.33363c77.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -34,7 +34,7 @@
34
34
  "assets": {
35
35
  "js": {
36
36
  "async": [
37
- "__mf/js/async/110.e82fda83.js"
37
+ "__mf/js/async/964.6dfbf211.js"
38
38
  ],
39
39
  "sync": [
40
40
  "__mf/js/async/960.3047096d.js"
@@ -55,7 +55,7 @@
55
55
  "assets": {
56
56
  "js": {
57
57
  "async": [
58
- "__mf/js/async/110.e82fda83.js",
58
+ "__mf/js/async/964.6dfbf211.js",
59
59
  "__mf/js/async/960.3047096d.js"
60
60
  ],
61
61
  "sync": [
@@ -78,7 +78,7 @@
78
78
  "assets": {
79
79
  "js": {
80
80
  "async": [
81
- "__mf/js/async/110.e82fda83.js"
81
+ "__mf/js/async/964.6dfbf211.js"
82
82
  ],
83
83
  "sync": [
84
84
  "__mf/js/async/214.2d4431c6.js",
@@ -94,21 +94,21 @@
94
94
  {
95
95
  "id": "TimeSeriesChart:@perses-dev/components",
96
96
  "name": "@perses-dev/components",
97
- "version": "0.51.0-beta.1",
97
+ "version": "0.51.0-rc.1",
98
98
  "singleton": true,
99
- "requiredVersion": "^0.51.0-beta.1",
99
+ "requiredVersion": "^0.51.0-rc.1",
100
100
  "assets": {
101
101
  "js": {
102
102
  "async": [
103
- "__mf/js/async/110.e82fda83.js",
103
+ "__mf/js/async/964.6dfbf211.js",
104
104
  "__mf/js/async/173.f6f7e45b.js",
105
105
  "__mf/js/async/960.3047096d.js",
106
106
  "__mf/js/async/770.78a741ab.js",
107
- "__mf/js/async/740.67107c3c.js",
108
- "__mf/js/async/75.5952779d.js"
107
+ "__mf/js/async/75.5952779d.js",
108
+ "__mf/js/async/740.67107c3c.js"
109
109
  ],
110
110
  "sync": [
111
- "__mf/js/async/357.397150dd.js"
111
+ "__mf/js/async/171.598de6a9.js"
112
112
  ]
113
113
  },
114
114
  "css": {
@@ -120,29 +120,31 @@
120
120
  {
121
121
  "id": "TimeSeriesChart:@perses-dev/plugin-system",
122
122
  "name": "@perses-dev/plugin-system",
123
- "version": "0.51.0-beta.1",
123
+ "version": "0.51.0-rc.1",
124
124
  "singleton": true,
125
- "requiredVersion": "^0.51.0-beta.1",
125
+ "requiredVersion": "^0.51.0-rc.1",
126
126
  "assets": {
127
127
  "js": {
128
128
  "async": [
129
- "__mf/js/async/110.e82fda83.js",
129
+ "__mf/js/async/964.6dfbf211.js",
130
130
  "__mf/js/async/173.f6f7e45b.js",
131
131
  "__mf/js/async/960.3047096d.js",
132
132
  "__mf/js/async/770.78a741ab.js",
133
- "__mf/js/async/224.ce414ffb.js",
134
- "__mf/js/async/740.67107c3c.js",
135
133
  "__mf/js/async/238.625b8a48.js",
134
+ "__mf/js/async/224.ce414ffb.js",
136
135
  "__mf/js/async/75.5952779d.js",
137
- "__mf/js/async/996.7bede0b2.js",
138
- "__mf/js/async/357.397150dd.js",
139
- "__mf/js/async/511.754bc334.js",
136
+ "__mf/js/async/740.67107c3c.js",
137
+ "__mf/js/async/281.a2a87c37.js",
138
+ "__mf/js/async/476.45fca8d3.js",
139
+ "__mf/js/async/171.598de6a9.js",
140
+ "__mf/js/async/879.24def15a.js",
140
141
  "__mf/js/async/738.0a12bb44.js",
141
- "__mf/js/async/610.df049245.js",
142
+ "__mf/js/async/223.def4d0a9.js",
143
+ "__mf/js/async/409.b4cabab7.js",
142
144
  "__mf/js/async/981.77f901c0.js"
143
145
  ],
144
146
  "sync": [
145
- "__mf/js/async/162.5d97bc19.js"
147
+ "__mf/js/async/845.6d99c354.js"
146
148
  ]
147
149
  },
148
150
  "css": {
@@ -182,7 +184,7 @@
182
184
  "js": {
183
185
  "async": [],
184
186
  "sync": [
185
- "__mf/js/async/610.df049245.js"
187
+ "__mf/js/async/409.b4cabab7.js"
186
188
  ]
187
189
  },
188
190
  "css": {
@@ -219,7 +221,7 @@
219
221
  "assets": {
220
222
  "js": {
221
223
  "async": [
222
- "__mf/js/async/110.e82fda83.js"
224
+ "__mf/js/async/964.6dfbf211.js"
223
225
  ],
224
226
  "sync": [
225
227
  "__mf/js/async/173.f6f7e45b.js"
@@ -241,7 +243,7 @@
241
243
  "js": {
242
244
  "async": [],
243
245
  "sync": [
244
- "__mf/js/async/110.e82fda83.js"
246
+ "__mf/js/async/964.6dfbf211.js"
245
247
  ]
246
248
  },
247
249
  "css": {
@@ -281,29 +283,31 @@
281
283
  "assets": {
282
284
  "js": {
283
285
  "sync": [
284
- "__mf/js/async/511.754bc334.js",
286
+ "__mf/js/async/281.a2a87c37.js",
285
287
  "__mf/js/async/780.3fa36115.js",
286
- "__mf/js/async/964.8be59ce0.js",
287
- "__mf/js/async/__federation_expose_TimeSeriesChart.a02bcd07.js"
288
+ "__mf/js/async/879.24def15a.js",
289
+ "__mf/js/async/223.def4d0a9.js",
290
+ "__mf/js/async/359.18a264e7.js",
291
+ "__mf/js/async/__federation_expose_TimeSeriesChart.1e16af77.js"
288
292
  ],
289
293
  "async": [
290
- "__mf/js/async/110.e82fda83.js",
294
+ "__mf/js/async/964.6dfbf211.js",
291
295
  "__mf/js/async/173.f6f7e45b.js",
292
296
  "__mf/js/async/960.3047096d.js",
293
297
  "__mf/js/async/770.78a741ab.js",
294
- "__mf/js/async/238.625b8a48.js",
295
298
  "__mf/js/async/224.ce414ffb.js",
296
- "__mf/js/async/292.311e6eb0.js",
297
- "__mf/js/async/996.7bede0b2.js",
298
- "__mf/js/async/754.a8adddbc.js",
299
- "__mf/js/async/357.397150dd.js",
300
299
  "__mf/js/async/740.67107c3c.js",
300
+ "__mf/js/async/238.625b8a48.js",
301
301
  "__mf/js/async/75.5952779d.js",
302
+ "__mf/js/async/292.311e6eb0.js",
303
+ "__mf/js/async/755.f76e3538.js",
304
+ "__mf/js/async/476.45fca8d3.js",
305
+ "__mf/js/async/171.598de6a9.js",
302
306
  "__mf/js/async/lib-router.098fc614.js",
303
- "__mf/js/async/162.5d97bc19.js",
307
+ "__mf/js/async/845.6d99c354.js",
304
308
  "__mf/js/async/488.0d0b1a91.js",
305
309
  "__mf/js/async/738.0a12bb44.js",
306
- "__mf/js/async/610.df049245.js",
310
+ "__mf/js/async/409.b4cabab7.js",
307
311
  "__mf/js/async/981.77f901c0.js"
308
312
  ]
309
313
  },