@orchestrator-ui/orchestrator-ui-components 2.9.0 → 2.9.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,21 +1,21 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@2.9.0 build
2
+ > @orchestrator-ui/orchestrator-ui-components@2.9.1 build
3
3
  > npm run generate-version && tsup src/index.ts
4
4
 
5
5
 
6
- > @orchestrator-ui/orchestrator-ui-components@2.9.0 generate-version
6
+ > @orchestrator-ui/orchestrator-ui-components@2.9.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 161ms
9
+ src/configuration/version.ts 192ms
10
10
  CLI Building entry: src/index.ts
11
11
  CLI Using tsconfig: tsconfig.build.json
12
12
  CLI tsup v8.3.5
13
13
  CLI Using tsup config: /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/tsup.config.ts
14
14
  CLI Target: es2020
15
15
  ESM Build start
16
+ DTS Build start
16
17
  ESM dist/index.js 1.91 MB
17
18
  ESM dist/index.js.map 3.48 MB
18
- ESM ⚡️ Build success in 974ms
19
- DTS Build start
20
- DTS ⚡️ Build success in 21666ms
19
+ ESM ⚡️ Build success in 1059ms
20
+ DTS ⚡️ Build success in 22393ms
21
21
  DTS dist/index.d.ts 650.94 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@2.9.0 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@2.9.1 lint
3
3
  > eslint "src/**/*.ts*"
4
4
 
5
5
 
@@ -1,42 +1,42 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@2.9.0 test
2
+ > @orchestrator-ui/orchestrator-ui-components@2.9.1 test
3
3
  > jest
4
4
 
5
- PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
6
- PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
7
5
  PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts
6
+ PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
8
7
  PASS Wfo-UI Tests src/utils/date.spec.ts
9
- PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
8
+ PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
10
9
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
10
+ PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
11
11
  PASS Wfo-UI Tests src/utils/string.spec.ts
12
12
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
13
13
  PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
14
- PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
15
14
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
15
+ PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
16
16
  PASS Wfo-UI Tests src/rtk/utils.spec.ts
17
17
  PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
18
18
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
19
19
  PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
20
20
  PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
21
21
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
22
- PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
23
22
  PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
24
- PASS Wfo-UI Tests src/utils/filterData.spec.ts
23
+ PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
25
24
  PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
25
+ PASS Wfo-UI Tests src/utils/filterData.spec.ts
26
26
  PASS Wfo-UI Tests src/utils/toObjectWithSerializedValues.spec.ts
27
27
  PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
28
- PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
29
28
  PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
29
+ PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
30
30
  PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
31
31
  PASS Wfo-UI Tests src/utils/uuid.spec.ts
32
32
  PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.spec.ts
33
33
  PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
34
34
  PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
35
35
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
36
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (7.003 s)
36
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (7.698 s)
37
37
 
38
38
  Test Suites: 32 passed, 32 total
39
39
  Tests: 197 passed, 197 total
40
40
  Snapshots: 0 total
41
- Time: 9.996 s
41
+ Time: 10.919 s
42
42
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 2.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fc4a7c5: Fixes too many productblock values being hidden
8
+
3
9
  ## 2.9.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -14421,7 +14421,7 @@ declare const IPAM_IP_BLOCKS_ENDPOINT = "surf/ipam/ip_blocks";
14421
14421
  declare const IPAM_FREE_SUBNETS_ENDPOINT = "surf/ipam/free_subnets";
14422
14422
  declare const SUBSCRIPTION_ACTIONS_ENDPOINT = "subscriptions/workflows";
14423
14423
 
14424
- declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "2.9.0";
14424
+ declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "2.9.1";
14425
14425
 
14426
14426
  declare const useGetTranslationMessages: (locale: string | undefined) => {
14427
14427
  pydanticForms: {
package/dist/index.js CHANGED
@@ -26792,7 +26792,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
26792
26792
  })(PolicyResource || {});
26793
26793
 
26794
26794
  // src/configuration/version.ts
26795
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "2.9.0";
26795
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "2.9.1";
26796
26796
 
26797
26797
  // src/types/types.ts
26798
26798
  var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
@@ -41092,7 +41092,6 @@ var WfoSubscriptionActions = ({
41092
41092
 
41093
41093
  // src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx
41094
41094
  import { useState as useState17 } from "react";
41095
- import { isEmpty } from "lodash";
41096
41095
  import { useTranslations as useTranslations31 } from "next-intl";
41097
41096
  import {
41098
41097
  EuiBadge as EuiBadge2,
@@ -41262,6 +41261,9 @@ var WfoSubscriptionProductBlock = ({
41262
41261
  (inUseByRelation) => inUseByRelation.subscription_id !== subscriptionId
41263
41262
  );
41264
41263
  const showProductBlockValues = !isOutsideCurrentSubscription || showDetails;
41264
+ const isEmpty2 = (value) => {
41265
+ return value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0;
41266
+ };
41265
41267
  return /* @__PURE__ */ jsxs66(Fragment25, { children: [
41266
41268
  /* @__PURE__ */ jsx114(EuiSpacer13, { size: "m" }),
41267
41269
  /* @__PURE__ */ jsxs66(
@@ -41365,7 +41367,7 @@ var WfoSubscriptionProductBlock = ({
41365
41367
  return 0;
41366
41368
  }
41367
41369
  ).map((productBlockInstanceValue, index) => {
41368
- if (productBlockInstanceValue && (!isEmpty(
41370
+ if (productBlockInstanceValue && (!isEmpty2(
41369
41371
  productBlockInstanceValue.value
41370
41372
  ) || showDetails)) {
41371
41373
  return /* @__PURE__ */ jsx114(
@@ -44301,7 +44303,7 @@ var getPortMode = (productBlockInstances) => {
44301
44303
  void 0
44302
44304
  );
44303
44305
  };
44304
- var isEmpty2 = (obj) => {
44306
+ var isEmpty = (obj) => {
44305
44307
  if (obj === void 0 || obj === null) {
44306
44308
  return true;
44307
44309
  }
@@ -44384,7 +44386,7 @@ var ContactPersonAutocomplete = ({
44384
44386
  const { contactPersonAutocompleteStyling } = useWithOrchestratorTheme(getStyles12);
44385
44387
  const selectedRowRef = useRef7(null);
44386
44388
  useEffect13(() => {
44387
- if (!isEmpty2(suggestions) && selectedRowRef.current) {
44389
+ if (!isEmpty(suggestions) && selectedRowRef.current) {
44388
44390
  scrollIntoView(selectedRowRef.current);
44389
44391
  }
44390
44392
  }, [selectedItem, suggestions]);
@@ -44401,7 +44403,7 @@ var ContactPersonAutocomplete = ({
44401
44403
  last
44402
44404
  ] });
44403
44405
  };
44404
- return isEmpty2(suggestions) ? null : /* @__PURE__ */ jsx158(EuiFlexItem16, { css: contactPersonAutocompleteStyling, children: /* @__PURE__ */ jsx158("section", { className: `autocomplete`, children: /* @__PURE__ */ jsx158("table", { className: "result", children: /* @__PURE__ */ jsx158("tbody", { children: suggestions.map((item, index) => /* @__PURE__ */ jsxs85(
44406
+ return isEmpty(suggestions) ? null : /* @__PURE__ */ jsx158(EuiFlexItem16, { css: contactPersonAutocompleteStyling, children: /* @__PURE__ */ jsx158("section", { className: `autocomplete`, children: /* @__PURE__ */ jsx158("table", { className: "result", children: /* @__PURE__ */ jsx158("tbody", { children: suggestions.map((item, index) => /* @__PURE__ */ jsxs85(
44405
44407
  "tr",
44406
44408
  {
44407
44409
  className: selectedItem === index ? "active" : "",