@orchestrator-ui/orchestrator-ui-components 5.5.2 → 5.5.3

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@5.5.2 build
2
+ > @orchestrator-ui/orchestrator-ui-components@5.5.3 build
3
3
  > npm run generate-version && tsup src/index.ts
4
4
 
5
5
 
6
- > @orchestrator-ui/orchestrator-ui-components@5.5.2 generate-version
6
+ > @orchestrator-ui/orchestrator-ui-components@5.5.3 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 40ms
9
+ src/configuration/version.ts 48ms
10
10
  CLI Building entry: src/index.ts
11
11
  CLI Using tsconfig: tsconfig.build.json
12
12
  CLI tsup v8.4.0
@@ -16,6 +16,6 @@ src/configuration/version.ts 40ms
16
16
  DTS Build start
17
17
  ESM dist/index.js 2.04 MB
18
18
  ESM dist/index.js.map 3.89 MB
19
- ESM ⚡️ Build success in 982ms
20
- DTS ⚡️ Build success in 20344ms
19
+ ESM ⚡️ Build success in 723ms
20
+ DTS ⚡️ Build success in 20762ms
21
21
  DTS dist/index.d.ts 839.31 KB
@@ -1,4 +1,4 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@5.5.2 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@5.5.3 lint
3
3
  > eslint
4
4
 
@@ -1,15 +1,15 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@5.5.2 test
2
+ > @orchestrator-ui/orchestrator-ui-components@5.5.3 test
3
3
  > jest
4
4
 
5
- PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
6
5
  PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
7
- PASS Wfo-UI Tests src/utils/date.spec.ts
6
+ PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
8
7
  PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
9
- PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
8
+ PASS Wfo-UI Tests src/utils/date.spec.ts
10
9
  PASS Wfo-UI Tests src/utils/string.spec.ts
11
- PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
10
+ PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
12
11
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
12
+ PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
13
13
  PASS Wfo-UI Tests src/utils/compareVersions.spec.ts
14
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
@@ -35,11 +35,11 @@ PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
35
35
  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
- PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts (6.39 s)
39
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts
38
+ PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts (6.576 s)
39
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.066 s)
40
40
 
41
41
  Test Suites: 35 passed, 35 total
42
42
  Tests: 228 passed, 228 total
43
43
  Snapshots: 0 total
44
- Time: 7.944 s
44
+ Time: 8.205 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
+ ## 5.5.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 19a7e45: Updates to pydantic form version 0.8.0
8
+
3
9
  ## 5.5.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -18478,7 +18478,7 @@ declare const METADATA_PRODUCT_BLOCK_ENDPOINT = "product_blocks";
18478
18478
  declare const METADATA_RESOURCE_TYPE_ENDPOINT = "resource_types";
18479
18479
  declare const METADATA_WORKFLOWS_ENDPOINT = "workflows";
18480
18480
 
18481
- declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "5.5.2";
18481
+ declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "5.5.3";
18482
18482
 
18483
18483
  declare const useGetTranslationMessages: (locale: string | undefined) => {
18484
18484
  pydanticForms: {
package/dist/index.js CHANGED
@@ -26800,7 +26800,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
26800
26800
  })(PolicyResource || {});
26801
26801
 
26802
26802
  // src/configuration/version.ts
26803
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.5.2";
26803
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "5.5.3";
26804
26804
 
26805
26805
  // src/types/types.ts
26806
26806
  var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
@@ -50324,7 +50324,7 @@ var WfoProcessDetailPage = ({
50324
50324
  };
50325
50325
 
50326
50326
  // src/pages/processes/WfoStartProcessPage.tsx
50327
- import { useCallback as useCallback8, useEffect as useEffect33, useMemo as useMemo6, useState as useState50 } from "react";
50327
+ import { useCallback as useCallback8, useEffect as useEffect34, useMemo as useMemo6, useState as useState50 } from "react";
50328
50328
  import { useTranslations as useTranslations68 } from "next-intl";
50329
50329
  import { useRouter as useRouter10 } from "next/router";
50330
50330
  import {
@@ -51510,6 +51510,7 @@ var WfoInteger = ({
51510
51510
  };
51511
51511
 
51512
51512
  // src/components/WfoPydanticForm/fields/WfoReactSelect/WfoReactSelect.tsx
51513
+ import React67, { useEffect as useEffect30 } from "react";
51513
51514
  import ReactSelect5, { components } from "react-select";
51514
51515
  import { EuiButtonIcon as EuiButtonIcon11 } from "@elastic/eui";
51515
51516
 
@@ -51585,9 +51586,16 @@ var WfoReactSelect = ({
51585
51586
  hasError = false,
51586
51587
  refetch
51587
51588
  }) => {
51588
- const selectedValue = options.find(
51589
+ useEffect30(() => {
51590
+ const selectedValue2 = options.find(
51591
+ (option) => option.value === value
51592
+ );
51593
+ setSelectedValue(selectedValue2 || null);
51594
+ }, [options, value]);
51595
+ const initialValue = options.find(
51589
51596
  (option) => option.value === value
51590
51597
  );
51598
+ const [selectedValue, setSelectedValue] = React67.useState(initialValue || null);
51591
51599
  const {
51592
51600
  reactSelectInnerComponentStyles,
51593
51601
  containerStyle,
@@ -51625,8 +51633,14 @@ var WfoReactSelect = ({
51625
51633
  id,
51626
51634
  inputId: `${id}.search`,
51627
51635
  onChange: (option) => {
51628
- const selectedValue2 = option?.value;
51629
- onChange(selectedValue2);
51636
+ if (option === null) {
51637
+ setSelectedValue(null);
51638
+ onChange(void 0);
51639
+ } else {
51640
+ const selectedValue2 = option?.value;
51641
+ setSelectedValue(option);
51642
+ onChange(selectedValue2);
51643
+ }
51630
51644
  },
51631
51645
  css: reactSelectStyle,
51632
51646
  isLoading,
@@ -51668,7 +51682,7 @@ var WfoDropdown = ({
51668
51682
  };
51669
51683
 
51670
51684
  // src/components/WfoPydanticForm/fields/WfoMultiCheckboxField.tsx
51671
- import { useEffect as useEffect30, useState as useState44 } from "react";
51685
+ import { useEffect as useEffect31, useState as useState44 } from "react";
51672
51686
  import { EuiCheckboxGroup } from "@elastic/eui";
51673
51687
  import { jsx as jsx219 } from "@emotion/react/jsx-runtime";
51674
51688
  var WfoMultiCheckboxField = ({
@@ -51676,7 +51690,7 @@ var WfoMultiCheckboxField = ({
51676
51690
  onChange,
51677
51691
  value
51678
51692
  }) => {
51679
- useEffect30(() => {
51693
+ useEffect31(() => {
51680
51694
  const getInitialMap = () => {
51681
51695
  const initialIdMap = (value || []).reduce(
51682
51696
  (idMap, id2) => {
@@ -51955,6 +51969,7 @@ var WfoPydanticForm = ({
51955
51969
  labelProvider: pydanticLabelProvider,
51956
51970
  rowRenderer: Row,
51957
51971
  customTranslations,
51972
+ loadingComponent: /* @__PURE__ */ jsx220(WfoLoading, {}),
51958
51973
  locale: getLocale()
51959
51974
  };
51960
51975
  }, [
@@ -51967,17 +51982,16 @@ var WfoPydanticForm = ({
51967
51982
  return /* @__PURE__ */ jsx220(
51968
51983
  PydanticForm2,
51969
51984
  {
51970
- id: processName,
51985
+ formKey: processName,
51971
51986
  onSuccess,
51972
51987
  onCancel: handleCancel,
51973
- loadingComponent: /* @__PURE__ */ jsx220(WfoLoading, {}),
51974
51988
  config
51975
51989
  }
51976
51990
  );
51977
51991
  };
51978
51992
 
51979
51993
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
51980
- import React70, { useState as useState46 } from "react";
51994
+ import React71, { useState as useState46 } from "react";
51981
51995
  import { useTranslations as useTranslations63 } from "next-intl";
51982
51996
  import {
51983
51997
  EuiButton as EuiButton12,
@@ -52265,7 +52279,7 @@ var WfoStepForm = ({
52265
52279
 
52266
52280
  // src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
52267
52281
  import { Fragment as Fragment51, jsx as jsx223, jsxs as jsxs115 } from "@emotion/react/jsx-runtime";
52268
- var WfoStep = React70.forwardRef(
52282
+ var WfoStep = React71.forwardRef(
52269
52283
  ({
52270
52284
  stepListItem,
52271
52285
  onToggleStepDetail,
@@ -52424,9 +52438,9 @@ var WfoStep = React70.forwardRef(
52424
52438
  WfoStep.displayName = "WfoStep";
52425
52439
 
52426
52440
  // src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
52427
- import React71, { useImperativeHandle as useImperativeHandle2, useRef as useRef12 } from "react";
52441
+ import React72, { useImperativeHandle as useImperativeHandle2, useRef as useRef12 } from "react";
52428
52442
  import { Fragment as Fragment52, jsx as jsx224, jsxs as jsxs116 } from "@emotion/react/jsx-runtime";
52429
- var WfoStepList = React71.forwardRef(
52443
+ var WfoStepList = React72.forwardRef(
52430
52444
  ({
52431
52445
  stepListItems,
52432
52446
  showHiddenKeys,
@@ -52506,12 +52520,12 @@ var WfoStepList = React71.forwardRef(
52506
52520
  WfoStepList.displayName = "WfoStepList";
52507
52521
 
52508
52522
  // src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
52509
- import React73, { useEffect as useEffect32, useState as useState48 } from "react";
52523
+ import React74, { useEffect as useEffect33, useState as useState48 } from "react";
52510
52524
  import { useTranslations as useTranslations66 } from "next-intl";
52511
52525
 
52512
52526
  // src/components/WfoDiff/WfoDiff.tsx
52513
52527
  var refractor = __toESM(require_refractor(), 1);
52514
- import { useCallback as useCallback7, useEffect as useEffect31, useMemo as useMemo5, useState as useState47 } from "react";
52528
+ import { useCallback as useCallback7, useEffect as useEffect32, useMemo as useMemo5, useState as useState47 } from "react";
52515
52529
  import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
52516
52530
  import "react-diff-view/style/index.css";
52517
52531
  import { useTranslations as useTranslations64 } from "next-intl";
@@ -52597,7 +52611,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
52597
52611
  return void 0;
52598
52612
  }
52599
52613
  }, [hunks, syntax]);
52600
- useEffect31(() => {
52614
+ useEffect32(() => {
52601
52615
  updateDiffText();
52602
52616
  }, [updateDiffText, showFull]);
52603
52617
  return /* @__PURE__ */ jsxs117("div", { children: [
@@ -52694,7 +52708,7 @@ var WfoProcessSubscriptionDelta = ({
52694
52708
  }
52695
52709
  );
52696
52710
  };
52697
- var WfoWorkflowStepList = React73.forwardRef(
52711
+ var WfoWorkflowStepList = React74.forwardRef(
52698
52712
  ({
52699
52713
  steps = [],
52700
52714
  lastStatus,
@@ -52730,7 +52744,7 @@ var WfoWorkflowStepList = React73.forwardRef(
52730
52744
  };
52731
52745
  });
52732
52746
  };
52733
- useEffect32(() => {
52747
+ useEffect33(() => {
52734
52748
  setStepListItems(
52735
52749
  (previousStepListItems) => persistStepListItemState(
52736
52750
  previousStepListItems,
@@ -53069,7 +53083,7 @@ var WfoStartProcessPage = ({
53069
53083
  },
53070
53084
  [startProcess, processName, startProcessPayload, isTask, router]
53071
53085
  );
53072
- useEffect33(() => {
53086
+ useEffect34(() => {
53073
53087
  if (processName && processName !== "modify_note") {
53074
53088
  const clientResultCallback = (json) => {
53075
53089
  setForm({
@@ -53412,7 +53426,7 @@ var WfoSubscriptionDetailPage = () => {
53412
53426
  };
53413
53427
 
53414
53428
  // src/pages/subscriptions/WfoSubscriptionsListPage.tsx
53415
- import { useEffect as useEffect34, useState as useState51 } from "react";
53429
+ import { useEffect as useEffect35, useState as useState51 } from "react";
53416
53430
  import { useTranslations as useTranslations73 } from "next-intl";
53417
53431
  import { StringParam as StringParam4, useQueryParam as useQueryParam3, withDefault as withDefault4 } from "use-query-params";
53418
53432
  import { EuiSpacer as EuiSpacer23 } from "@elastic/eui";
@@ -53423,7 +53437,7 @@ var WfoSubscriptionsListPage = () => {
53423
53437
  const getStoredTableConfig = useStoredTableConfig(
53424
53438
  SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
53425
53439
  );
53426
- useEffect34(() => {
53440
+ useEffect35(() => {
53427
53441
  const storedConfig = getStoredTableConfig();
53428
53442
  if (storedConfig) {
53429
53443
  setTableDefaults(storedConfig);
@@ -53484,7 +53498,7 @@ var WfoSubscriptionsListPage = () => {
53484
53498
  };
53485
53499
 
53486
53500
  // src/pages/tasks/WfoTasksListPage.tsx
53487
- import { useContext as useContext11, useEffect as useEffect35, useState as useState52 } from "react";
53501
+ import { useContext as useContext11, useEffect as useEffect36, useState as useState52 } from "react";
53488
53502
  import { useTranslations as useTranslations74 } from "next-intl";
53489
53503
  import Link11 from "next/link";
53490
53504
  import { useRouter as useRouter12 } from "next/router";
@@ -53570,7 +53584,7 @@ var WfoTasksListPage = () => {
53570
53584
  const { showConfirmDialog } = useContext11(ConfirmationDialogContext);
53571
53585
  const [retryAllProcesses] = useRetryAllProcessesMutation();
53572
53586
  const { isEngineRunningNow } = useCheckEngineStatus();
53573
- useEffect35(() => {
53587
+ useEffect36(() => {
53574
53588
  const storedConfig = getStoredTableConfig();
53575
53589
  if (storedConfig) {
53576
53590
  setTableDefaults(storedConfig);
@@ -53671,7 +53685,7 @@ var WfoTasksListPage = () => {
53671
53685
  };
53672
53686
 
53673
53687
  // src/pages/workflows/WfoWorkflowsListPage.tsx
53674
- import { useEffect as useEffect36, useState as useState53 } from "react";
53688
+ import { useEffect as useEffect37, useState as useState53 } from "react";
53675
53689
  import { useTranslations as useTranslations75 } from "next-intl";
53676
53690
  import { useRouter as useRouter13 } from "next/router";
53677
53691
  import { StringParam as StringParam6, useQueryParam as useQueryParam5, withDefault as withDefault6 } from "use-query-params";
@@ -53752,7 +53766,7 @@ var WfoWorkflowsListPage = () => {
53752
53766
  const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
53753
53767
  const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
53754
53768
  const getStoredTableConfig = useStoredTableConfig(localStorageKey);
53755
- useEffect36(() => {
53769
+ useEffect37(() => {
53756
53770
  const storedConfig = getStoredTableConfig();
53757
53771
  if (storedConfig) {
53758
53772
  setTableDefaults(storedConfig);
@@ -54388,9 +54402,9 @@ var WfoInsyncIcon = ({ inSync }) => {
54388
54402
  };
54389
54403
 
54390
54404
  // src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
54391
- import React81 from "react";
54405
+ import React82 from "react";
54392
54406
  import { jsx as jsx248, jsxs as jsxs134 } from "@emotion/react/jsx-runtime";
54393
- var WfoErrorBoundary = class extends React81.Component {
54407
+ var WfoErrorBoundary = class extends React82.Component {
54394
54408
  constructor(props) {
54395
54409
  super(props);
54396
54410
  this.state = { hasError: false };