@orchestrator-ui/orchestrator-ui-components 0.2.6 → 0.2.7

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.
@@ -5,9 +5,9 @@ $ tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json
5
5
  CLI tsup v7.2.0
6
6
  CLI Target: node16
7
7
  ESM Build start
8
- ESM dist/index.js 808.84 KB
9
- ESM ⚡️ Build success in 514ms
8
+ ESM dist/index.js 808.65 KB
9
+ ESM ⚡️ Build success in 515ms
10
10
  DTS Build start
11
- DTS ⚡️ Build success in 9528ms
11
+ DTS ⚡️ Build success in 9948ms
12
12
  DTS dist/index.d.ts 60.30 KB
13
- Done in 10.40s.
13
+ Done in 10.82s.
@@ -1,15 +1,15 @@
1
1
  $ jest
2
2
  PASS Orchestrator UI Components Tests src/pages/processes/timelineUtils.spec.ts
3
- PASS Orchestrator UI Components Tests src/components/WfoSubscription/utils/utils.spec.ts
4
3
  PASS Orchestrator UI Components Tests src/components/WfoForms/formFields/utils.spec.ts
5
4
  PASS Orchestrator UI Components Tests src/utils/date.spec.ts
6
5
  PASS Orchestrator UI Components Tests src/utils/getProductNamesFromProcess.spec.ts
6
+ PASS Orchestrator UI Components Tests src/components/WfoSubscription/utils/utils.spec.ts
7
7
  PASS Orchestrator UI Components Tests src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts
8
- PASS Orchestrator UI Components Tests src/components/WfoTree/treeUtils.spec.ts
9
8
  PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
9
+ PASS Orchestrator UI Components Tests src/components/WfoTree/treeUtils.spec.ts
10
10
  PASS Orchestrator UI Components Tests src/utils/string.spec.ts
11
- PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableUtils.spec.ts
12
11
  PASS Orchestrator UI Components Tests src/messages/getTranslationMessages.spec.ts
12
+ PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableUtils.spec.ts
13
13
  PASS Orchestrator UI Components Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
14
14
  PASS Orchestrator UI Components Tests src/components/WfoTable/utils/columns.spec.ts
15
15
  PASS Orchestrator UI Components Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
@@ -21,5 +21,5 @@ PASS Orchestrator UI Components Tests src/utils/getTypedFieldFromObject.spec.ts
21
21
  Test Suites: 18 passed, 18 total
22
22
  Tests: 114 passed, 114 total
23
23
  Snapshots: 0 total
24
- Time: 9.794 s
24
+ Time: 9.588 s
25
25
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 0.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - ce48846: Updates linting rules to ban all console statements except console.error()
8
+
3
9
  ## 0.2.6
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -7819,11 +7819,7 @@ var BaseApiClient = class {
7819
7819
  }
7820
7820
  axiosFetch = (path, options = {}, headers = {}, showErrorDialog = true, result = true) => {
7821
7821
  return this._axiosInstance({ url: path, method: "GET", ...options }).then((res) => res.data).catch((err) => {
7822
- var _a;
7823
7822
  if (showErrorDialog) {
7824
- console.debug(
7825
- `Show error dialog for GET ${path} returning ${(_a = err == null ? void 0 : err.response) == null ? void 0 : _a.status}`
7826
- );
7827
7823
  setTimeout(() => {
7828
7824
  throw err;
7829
7825
  }, 250);
@@ -18852,7 +18848,7 @@ var IpPrefixTableField = class extends React32.PureComponent {
18852
18848
  try {
18853
18849
  return typeof aVal === "string" && typeof bVal === "string" ? aVal.toLowerCase().localeCompare(bVal.toLowerCase()) : aVal - bVal;
18854
18850
  } catch (e) {
18855
- console.log(e);
18851
+ console.error(e);
18856
18852
  }
18857
18853
  return 0;
18858
18854
  };
@@ -19985,7 +19981,6 @@ function CreateForm(props) {
19985
19981
  const submit = useCallback2(
19986
19982
  (userInputs) => {
19987
19983
  return apiClient.cimStartForm(formKey, userInputs).then((form2) => {
19988
- console.log("Submit {formkey} =", formKey);
19989
19984
  handleSubmit(form2);
19990
19985
  });
19991
19986
  },
@@ -22422,7 +22417,10 @@ var WfoStepList = React46.forwardRef(
22422
22417
  behavior: "smooth"
22423
22418
  });
22424
22419
  } catch {
22425
- console.log("Error scrolling to step with stepId ", stepId);
22420
+ console.error(
22421
+ "Error scrolling to step with stepId ",
22422
+ stepId
22423
+ );
22426
22424
  }
22427
22425
  }
22428
22426
  }));
@@ -23537,7 +23535,7 @@ var WfoStartWorkflowPage = ({
23537
23535
  startWorkflowPromise,
23538
23536
  503,
23539
23537
  (json) => {
23540
- console.log("engine down!!!", json);
23538
+ console.error("engine down!!!", json);
23541
23539
  router.push(PATH_PROCESSES);
23542
23540
  }
23543
23541
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orchestrator-ui/orchestrator-ui-components",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "test": "jest",
package/src/api/index.ts CHANGED
@@ -47,9 +47,6 @@ export class BaseApiClient {
47
47
  .then((res) => res.data)
48
48
  .catch((err) => {
49
49
  if (showErrorDialog) {
50
- console.debug(
51
- `Show error dialog for GET ${path} returning ${err?.response?.status}`,
52
- );
53
50
  setTimeout(() => {
54
51
  throw err;
55
52
  }, 250);
@@ -34,7 +34,6 @@ export function CreateForm(props: IProps) {
34
34
  const submit = useCallback(
35
35
  (userInputs: object[]) => {
36
36
  return apiClient.cimStartForm(formKey, userInputs).then((form) => {
37
- console.log('Submit {formkey} =', formKey);
38
37
  handleSubmit(form);
39
38
  });
40
39
  },
@@ -448,6 +448,7 @@ function UserInputForm({
448
448
  question: string | undefined,
449
449
  confirm: ConfirmDialogActions['closeConfirmDialog'],
450
450
  ) => {
451
+ // eslint-disable-next-line no-console
451
452
  console.log(e, question, confirm);
452
453
  alert('TODO: Implement on buttonClick cancel with confirm modal');
453
454
  // https://github.com/workfloworchestrator/orchestrator-ui/issues/325
@@ -123,7 +123,7 @@ export default class IpPrefixTableField extends React.PureComponent<IProps> {
123
123
  ? aVal.toLowerCase().localeCompare(bVal.toLowerCase())
124
124
  : (aVal as number) - (bVal as number);
125
125
  } catch (e) {
126
- console.log(e);
126
+ console.error(e);
127
127
  }
128
128
  return 0;
129
129
  };
@@ -61,7 +61,10 @@ export const WfoStepList = React.forwardRef(
61
61
  behavior: 'smooth',
62
62
  });
63
63
  } catch {
64
- console.log('Error scrolling to step with stepId ', stepId);
64
+ console.error(
65
+ 'Error scrolling to step with stepId ',
66
+ stepId,
67
+ );
65
68
  }
66
69
  },
67
70
  }));
@@ -72,6 +72,7 @@ export const WfoStartWorkflowPage = ({
72
72
  const process = result as { id: string };
73
73
  // TODO: Use toast hook to display success message
74
74
  if (process.id) {
75
+ // eslint-disable-next-line no-console
75
76
  console.log(
76
77
  'resolver successfullly!: ',
77
78
  process.id,
@@ -92,7 +93,7 @@ export const WfoStartWorkflowPage = ({
92
93
  503,
93
94
  (json) => {
94
95
  // TODO: Use the toastMessage hook to display an engine down error message
95
- console.log('engine down!!!', json);
96
+ console.error('engine down!!!', json);
96
97
  router.push(PATH_PROCESSES);
97
98
  },
98
99
  );