@orchestrator-ui/orchestrator-ui-components 7.7.0 → 7.7.1

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.
@@ -1,12 +1,12 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@7.7.0 build
2
+ > @orchestrator-ui/orchestrator-ui-components@7.7.1 build
3
3
  > npm run generate-version && tsup src/index.ts
4
4
 
5
5
 
6
- > @orchestrator-ui/orchestrator-ui-components@7.7.0 generate-version
6
+ > @orchestrator-ui/orchestrator-ui-components@7.7.1 generate-version
7
7
  > node -p "'export const ORCHESTRATOR_UI_LIBRARY_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/configuration/version.ts && prettier --write src/configuration/version.ts
8
8
 
9
- src/configuration/version.ts 48ms
9
+ src/configuration/version.ts 47ms
10
10
  CLI Building entry: src/index.ts
11
11
  CLI Using tsconfig: tsconfig.json
12
12
  CLI tsup v8.5.1
@@ -14,9 +14,9 @@ src/configuration/version.ts 48ms
14
14
  CLI Target: es2022
15
15
  CLI Cleaning output folder
16
16
  ESM Build start
17
- ESM dist/index.js 814.84 KB
17
+ ESM dist/index.js 815.21 KB
18
18
  ESM dist/index.js.map 1.39 MB
19
- ESM ⚡️ Build success in 297ms
19
+ ESM ⚡️ Build success in 333ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 24091ms
21
+ DTS ⚡️ Build success in 22701ms
22
22
  DTS dist/index.d.ts 1.50 MB
@@ -1,4 +1,4 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@7.7.0 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@7.7.1 lint
3
3
  > eslint
4
4
 
@@ -1,22 +1,22 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@7.7.0 test
2
+ > @orchestrator-ui/orchestrator-ui-components@7.7.1 test
3
3
  > jest
4
4
 
5
- PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
6
- PASS Wfo-UI Tests src/utils/date.spec.ts
7
- PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
8
- PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
9
5
  PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
6
+ PASS Wfo-UI Tests src/utils/date.spec.ts
10
7
  PASS Wfo-UI Tests src/utils/string.spec.ts
8
+ PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
11
9
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
10
+ PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
12
11
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
13
12
  PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
14
13
  PASS Wfo-UI Tests src/utils/compareVersions.spec.ts
14
+ PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
15
15
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
16
- PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
17
16
  PASS Wfo-UI Tests src/rtk/utils.spec.ts
18
- PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
17
+ PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
19
18
  PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
19
+ PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
20
20
  PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
21
21
  PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
22
22
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
@@ -36,10 +36,10 @@ PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
36
36
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
37
37
  PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
38
38
  PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.spec.ts
39
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.368 s)
39
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.588 s)
40
40
 
41
41
  Test Suites: 35 passed, 35 total
42
42
  Tests: 227 passed, 227 total
43
43
  Snapshots: 0 total
44
- Time: 7.837 s
44
+ Time: 7.911 s
45
45
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 7.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fe51a71: Fixes forms for suspended steps
8
+ I
9
+
3
10
  ## 7.7.0
4
11
 
5
12
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -27695,7 +27695,7 @@ declare const METADATA_WORKFLOWS_ENDPOINT = "workflows";
27695
27695
  declare const METADATA_SCHEDULES_ENDPOINT = "schedules";
27696
27696
  declare const SEARCH_QUERY_RESULTS_ENDPOINT = "search/queries";
27697
27697
 
27698
- declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "7.7.0";
27698
+ declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "7.7.1";
27699
27699
 
27700
27700
  declare const useGetTranslationMessages: (locale: string | undefined) => {
27701
27701
  pydanticForms: {
package/dist/index.js CHANGED
@@ -64,7 +64,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
64
64
  })(PolicyResource || {});
65
65
 
66
66
  // src/configuration/version.ts
67
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.7.0";
67
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.7.1";
68
68
 
69
69
  // src/types/types.ts
70
70
  var EngineStatus = /* @__PURE__ */ ((EngineStatus2) => {
@@ -14171,7 +14171,7 @@ var WfoStep = React62.forwardRef(
14171
14171
  /* @__PURE__ */ jsx203("div", { className: "emailMessage", dangerouslySetInnerHTML: { __html: value.message } })
14172
14172
  ] });
14173
14173
  };
14174
- const handle = useCallback11(
14174
+ const handleCodeViewChange = useCallback11(
14175
14175
  (newCodeView) => {
14176
14176
  setCodeView(newCodeView);
14177
14177
  },
@@ -14191,8 +14191,8 @@ var WfoStep = React62.forwardRef(
14191
14191
  step.completed && `- ${formatDate(step.completed)}`
14192
14192
  ] })
14193
14193
  ] }),
14194
- /* @__PURE__ */ jsx203(EuiFlexGroup23, { css: stepRowStyle, children: step.completed && /* @__PURE__ */ jsxs105(Fragment47, { children: [
14195
- isExpanded && /* @__PURE__ */ jsx203(WfoCodeViewSelector, { codeView, handleCodeViewChange: handle }),
14194
+ /* @__PURE__ */ jsx203(EuiFlexGroup23, { css: stepRowStyle, children: step.completed && !userInputForm && !hasHtmlMail && /* @__PURE__ */ jsxs105(Fragment47, { children: [
14195
+ isExpanded && /* @__PURE__ */ jsx203(WfoCodeViewSelector, { codeView, handleCodeViewChange }),
14196
14196
  /* @__PURE__ */ jsxs105(EuiFlexItem19, { grow: 0, css: stepHeaderRightStyle, children: [
14197
14197
  /* @__PURE__ */ jsx203(EuiText18, { css: stepDurationStyle, children: t("duration") }),
14198
14198
  /* @__PURE__ */ jsx203(EuiText18, { size: "m", children: calculateTimeDifference(startedAt, completedAt) })
@@ -14203,22 +14203,23 @@ var WfoStep = React62.forwardRef(
14203
14203
  /* @__PURE__ */ jsx203(EuiFlexItem19, { children: overrideStepDetail?.stepHeader && /* @__PURE__ */ jsx203(overrideStepDetail.stepHeader, { step }) })
14204
14204
  ] })
14205
14205
  ] }),
14206
- shouldExpand && /* @__PURE__ */ jsxs105(EuiFlexGroup23, { direction: "column", gutterSize: "none", children: [
14207
- /* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 1, children: overrideStepDetail?.stepBody && /* @__PURE__ */ jsx203(overrideStepDetail.stepBody, { step }) }),
14208
- /* @__PURE__ */ jsxs105(EuiFlexItem19, { children: [
14209
- shouldExpand && !hasHtmlMail && (codeView === "table" /* TABLE */ ? /* @__PURE__ */ jsx203(WfoTableCodeBlock, { stepState: stepContent }) : codeView === "raw" /* RAW */ ? /* @__PURE__ */ jsx203(WfoJsonCodeBlock, { data: stepContent }) : /* @__PURE__ */ jsx203(WfoMonacoCodeBlock, { data: stepContent })),
14210
- isExpanded && hasHtmlMail && /* @__PURE__ */ jsx203("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(step.stateDelta.confirmation_mail) }),
14211
- step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsx203(
14212
- WfoStepForm,
14213
- {
14214
- userInputForm,
14215
- isTask,
14216
- processId: processId ?? "",
14217
- userPermissions
14218
- }
14219
- )
14220
- ] })
14221
- ] })
14206
+ shouldExpand && !hasHtmlMail && /* @__PURE__ */ jsxs105(EuiFlexGroup23, { direction: "column", gutterSize: "none", children: [
14207
+ /* @__PURE__ */ jsx203(EuiFlexItem19, { children: codeView === "table" /* TABLE */ ? /* @__PURE__ */ jsx203(WfoTableCodeBlock, { stepState: stepContent }) : codeView === "raw" /* RAW */ ? /* @__PURE__ */ jsx203(WfoJsonCodeBlock, { data: stepContent }) : /* @__PURE__ */ jsx203(WfoMonacoCodeBlock, { data: stepContent }) }),
14208
+ /* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 1, children: !(step.status === "suspend" /* SUSPEND */ && userInputForm) && overrideStepDetail?.stepBody && /* @__PURE__ */ jsx203(overrideStepDetail.stepBody, { step }) })
14209
+ ] }),
14210
+ step.status === "suspend" /* SUSPEND */ && userInputForm && /* @__PURE__ */ jsxs105(EuiFlexGroup23, { direction: "column", gutterSize: "none", children: [
14211
+ /* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 1, children: /* @__PURE__ */ jsx203(
14212
+ WfoStepForm,
14213
+ {
14214
+ userInputForm,
14215
+ isTask,
14216
+ processId: processId ?? "",
14217
+ userPermissions
14218
+ }
14219
+ ) }),
14220
+ /* @__PURE__ */ jsx203(EuiFlexItem19, { grow: 1, children: overrideStepDetail?.stepBody && /* @__PURE__ */ jsx203(overrideStepDetail.stepBody, { step }) })
14221
+ ] }),
14222
+ isExpanded && hasHtmlMail && /* @__PURE__ */ jsx203("div", { css: stepEmailContainerStyle, children: displayMailConfirmation(step.stateDelta.confirmation_mail) })
14222
14223
  ] }) });
14223
14224
  }
14224
14225
  );