@kwirthmagnify/kwirth-common-front 0.5.10 → 0.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -35,7 +35,13 @@ export interface IChannelObject {
35
35
  exit?: () => void;
36
36
  stopChannel?: () => void;
37
37
  openManager?: (type: 'plugins' | 'providers' | 'senders' | 'daemons') => void;
38
- metricsList?: Map<string, unknown>;
38
+ metricsList?: Map<string, MetricDefinition>;
39
+ }
40
+ export declare class MetricDefinition {
41
+ metric: string;
42
+ type: string;
43
+ help: string;
44
+ eval: string;
39
45
  }
40
46
  export interface ISetupProps {
41
47
  onChannelSetupClosed: (channel: IChannel, channelSettings: IChannelSettings, start: boolean, defaultValues: boolean) => void;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MarkdownViewer = exports.cleanANSI = exports.ENotifyLevel = exports.EChannelRefreshAction = exports.useKeyboard = void 0;
3
+ exports.MarkdownViewer = exports.cleanANSI = exports.MetricDefinition = exports.ENotifyLevel = exports.EChannelRefreshAction = exports.useKeyboard = void 0;
4
4
  const react_1 = require("react");
5
5
  const kwirth_common_1 = require("@kwirthmagnify/kwirth-common");
6
6
  Object.defineProperty(exports, "EChannelRefreshAction", { enumerable: true, get: function () { return kwirth_common_1.EChannelRefreshAction; } });
@@ -28,6 +28,15 @@ const useKeyboard = (onEscape, id) => {
28
28
  }, [onEscape, id]);
29
29
  };
30
30
  exports.useKeyboard = useKeyboard;
31
+ class MetricDefinition {
32
+ constructor() {
33
+ this.metric = '';
34
+ this.type = '';
35
+ this.help = '';
36
+ this.eval = '';
37
+ }
38
+ }
39
+ exports.MetricDefinition = MetricDefinition;
31
40
  const cleanANSI = (text) => text.replace(/\x1b\[[0-9;]*[mKHVfJrcegH]|\x1b\[\d*n/g, '');
32
41
  exports.cleanANSI = cleanANSI;
33
42
  var MarkdownViewer_1 = require("./MarkdownViewer");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwirthmagnify/kwirth-common-front",
3
- "version": "0.5.10",
3
+ "version": "0.5.11",
4
4
  "description": "Frontend channel interfaces for Kwirth plugins and channels",
5
5
  "scripts": {
6
6
  "build": "del .\\dist\\* /s /q && tsc"