@oclif/multi-stage-output 0.1.0 → 0.1.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.
@@ -47,7 +47,7 @@ export type FormattedKeyValue = {
47
47
  readonly stage?: string;
48
48
  readonly type: 'dynamic-key-value' | 'static-key-value' | 'message';
49
49
  };
50
- type MultiStageComponentOptions<T extends Record<string, unknown>> = {
50
+ type MultiStageOutputOptions<T extends Record<string, unknown>> = {
51
51
  /**
52
52
  * Stages to render.
53
53
  */
@@ -123,7 +123,7 @@ export declare class MultiStageOutput<T extends Record<string, unknown>> impleme
123
123
  private stopped;
124
124
  private readonly timerUnit?;
125
125
  private readonly title;
126
- constructor({ data, isInCiOverride, jsonEnabled, postStagesBlock, preStagesBlock, showElapsedTime, showStageTime, stageSpecificBlock, stages, timerUnit, title, }: MultiStageComponentOptions<T>);
126
+ constructor({ data, isInCiOverride, jsonEnabled, postStagesBlock, preStagesBlock, showElapsedTime, showStageTime, stageSpecificBlock, stages, timerUnit, title, }: MultiStageOutputOptions<T>);
127
127
  goto(stage: string, data?: Partial<T>): void;
128
128
  next(data?: Partial<T>): void;
129
129
  stop(error?: Error): void;
@@ -38,7 +38,7 @@ function Infos({ error, keyValuePairs, stage, }) {
38
38
  return React.createElement(SimpleMessage, { key: key, ...kv });
39
39
  }
40
40
  if (kv.type === 'dynamic-key-value') {
41
- return (React.createElement(SpinnerOrErrorOrChildren, { key: key, error: error, label: `${kv.label}: `, labelPosition: "left", type: spinners.info }, kv.value && (React.createElement(Text, { bold: kv.isBold, color: kv.color }, kv.value))));
41
+ return (React.createElement(SpinnerOrErrorOrChildren, { key: key, error: error, label: `${kv.label}:`, labelPosition: "left", type: spinners.info }, kv.value && (React.createElement(Text, { bold: kv.isBold, color: kv.color }, kv.value))));
42
42
  }
43
43
  if (kv.type === 'static-key-value') {
44
44
  return React.createElement(StaticKeyValue, { key: key, ...kv });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/multi-stage-output",
3
3
  "description": "Terminal output for oclif commands with multiple stages",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/multi-stage-output/issues",
7
7
  "dependencies": {
@@ -10,8 +10,7 @@
10
10
  "cli-spinners": "^2",
11
11
  "figures": "^6.1.0",
12
12
  "ink": "^5.0.1",
13
- "react": "^18.3.1",
14
- "terminal-link": "^3.0.0"
13
+ "react": "^18.3.1"
15
14
  },
16
15
  "devDependencies": {
17
16
  "@commitlint/config-conventional": "^19",