@orchestrator-ui/orchestrator-ui-components 7.7.0 → 8.0.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.
@@ -1,12 +1,12 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@7.7.0 build
2
+ > @orchestrator-ui/orchestrator-ui-components@8.0.0 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@8.0.0 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 814.88 KB
18
18
  ESM dist/index.js.map 1.39 MB
19
- ESM ⚡️ Build success in 297ms
19
+ ESM ⚡️ Build success in 301ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 24091ms
21
+ DTS ⚡️ Build success in 26475ms
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@8.0.0 lint
3
3
  > eslint
4
4
 
@@ -1,24 +1,24 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@7.7.0 test
2
+ > @orchestrator-ui/orchestrator-ui-components@8.0.0 test
3
3
  > jest
4
4
 
5
5
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
6
- PASS Wfo-UI Tests src/utils/date.spec.ts
7
6
  PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
8
- PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
7
+ PASS Wfo-UI Tests src/utils/date.spec.ts
9
8
  PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
10
9
  PASS Wfo-UI Tests src/utils/string.spec.ts
10
+ PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
11
11
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
12
12
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
13
- 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/components/WfoTable/WfoTableWithFilter/updateQueryString.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
20
- PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
19
+ PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
21
20
  PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
21
+ PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
22
22
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
23
23
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
24
24
  PASS Wfo-UI Tests src/components/WfoTable/utils/columns.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.776 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: 8.449 s
45
45
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 8.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 70ef6eb: Updates to verion pydantic-forms-ui 2.\*. Adds override step header and step details option.
8
+
3
9
  ## 7.7.0
4
10
 
5
11
  ### 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 = "8.0.0";
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 = "8.0.0";
68
68
 
69
69
  // src/types/types.ts
70
70
  var EngineStatus = /* @__PURE__ */ ((EngineStatus2) => {
@@ -5499,7 +5499,7 @@ var WfoObjectField = ({ pydanticFormField }) => {
5499
5499
  const config = useGetConfig();
5500
5500
  const disabled = pydanticFormField.attributes?.disabled || false;
5501
5501
  const { wfoObjectFieldStyles } = getWfoObjectFieldStyles();
5502
- const components2 = getPydanticFormComponents(pydanticFormField.properties || {}, config?.componentMatcherExtender);
5502
+ const components2 = getPydanticFormComponents(pydanticFormField.properties || {}, config?.componentMatcher);
5503
5503
  if (disabled) {
5504
5504
  components2.forEach((component) => {
5505
5505
  component.pydanticFormField = disableField(component.pydanticFormField);
@@ -5597,7 +5597,7 @@ var WfoArrayField = ({ pydanticFormField }) => {
5597
5597
  const showMinus = (!minItems || fields.length > minItems) && !disabled;
5598
5598
  const showPlus = (!maxItems || fields.length < maxItems) && !disabled;
5599
5599
  if (!arrayItem) return null;
5600
- const component = fieldToComponentMatcher(arrayItem, config?.componentMatcherExtender);
5600
+ const component = fieldToComponentMatcher(arrayItem, config?.componentMatcher);
5601
5601
  const renderField = (field, index) => {
5602
5602
  const itemizedField = itemizeArrayItem(index, arrayItem, arrayName);
5603
5603
  const arrayItemField = disabled ? disableField2(itemizedField) : itemizedField;
@@ -5667,18 +5667,20 @@ var WfoInteger = ({ pydanticFormField, onChange, value, disabled }) => {
5667
5667
  const { formFieldBaseStyle } = useWithOrchestratorTheme(getFormFieldsBaseStyle2);
5668
5668
  const fieldName = getFormFieldIdWithPath2(pydanticFormField.id);
5669
5669
  const fieldValue = _2.isObject(value) && _2.has(value, fieldName) ? _2.get(value, fieldName) : value;
5670
- const [userInput, setUserInput] = React12.useState();
5670
+ const [userInput, setUserInput] = React12.useState("");
5671
5671
  useEffect3(() => {
5672
5672
  if (fieldValue !== void 0 && fieldValue !== null) {
5673
5673
  setUserInput(fieldValue);
5674
- } else {
5675
- setUserInput("");
5676
5674
  }
5677
5675
  }, [fieldValue, value]);
5678
5676
  const handleOnChange = (event) => {
5679
- const newValue = event.target.value;
5680
- if (value === null && newValue !== value) {
5681
- onChange(parseInt(newValue));
5677
+ const newValue = event.target.value || "";
5678
+ if (value === null || newValue !== value) {
5679
+ if (!isNaN(parseInt(newValue))) {
5680
+ onChange(parseInt(newValue));
5681
+ } else {
5682
+ onChange("");
5683
+ }
5682
5684
  }
5683
5685
  setUserInput(newValue);
5684
5686
  };