@orchestrator-ui/orchestrator-ui-components 3.7.0 → 3.8.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@3.7.0 build
2
+ > @orchestrator-ui/orchestrator-ui-components@3.8.0 build
3
3
  > npm run generate-version && tsup src/index.ts
4
4
 
5
5
 
6
- > @orchestrator-ui/orchestrator-ui-components@3.7.0 generate-version
6
+ > @orchestrator-ui/orchestrator-ui-components@3.8.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 132ms
9
+ src/configuration/version.ts 149ms
10
10
  CLI Building entry: src/index.ts
11
11
  CLI Using tsconfig: tsconfig.build.json
12
12
  CLI tsup v8.3.5
@@ -16,6 +16,6 @@ src/configuration/version.ts 132ms
16
16
  DTS Build start
17
17
  ESM dist/index.js 1.95 MB
18
18
  ESM dist/index.js.map 3.56 MB
19
- ESM ⚡️ Build success in 479ms
20
- DTS ⚡️ Build success in 17970ms
21
- DTS dist/index.d.ts 685.52 KB
19
+ ESM ⚡️ Build success in 470ms
20
+ DTS ⚡️ Build success in 16263ms
21
+ DTS dist/index.d.ts 685.68 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@3.7.0 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@3.8.0 lint
3
3
  > eslint "src/**/*.ts*"
4
4
 
5
5
 
@@ -1,9 +1,9 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@3.7.0 test
2
+ > @orchestrator-ui/orchestrator-ui-components@3.8.0 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
6
+ PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
7
7
  PASS Wfo-UI Tests src/utils/date.spec.ts
8
8
  PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
9
9
  PASS Wfo-UI Tests src/utils/string.spec.ts
@@ -34,11 +34,11 @@ 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
36
  PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
37
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.408 s)
38
- PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts (7.124 s)
37
+ PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts (6.809 s)
38
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.204 s)
39
39
 
40
40
  Test Suites: 34 passed, 34 total
41
41
  Tests: 220 passed, 220 total
42
42
  Snapshots: 0 total
43
- Time: 7.957 s
43
+ Time: 7.61 s
44
44
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 3.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 93d46aa: 1635 Adds extra parameter ("allFieldValues") to the override function to have all data available when overriding a specific cell value
8
+
9
+ ### Patch Changes
10
+
11
+ - 6fdc33a: 1824 Fix for the thin gray line in the sidebar that went beyond settings.
12
+
3
13
  ## 3.7.0
4
14
 
5
15
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -13548,7 +13548,7 @@ type CustomApiConfig = {
13548
13548
  type CustomApiSlice = Slice<CustomApiConfig[]>;
13549
13549
  declare const getCustomApiSlice: (customApis: CustomApiConfig[]) => CustomApiSlice;
13550
13550
 
13551
- type ValueOverrideFunction = (fieldValue: FieldValue | RenderableFieldValue) => ReactNode;
13551
+ type ValueOverrideFunction = (fieldValue: FieldValue | RenderableFieldValue, allFieldValues: FieldValue[] | RenderableFieldValue[]) => ReactNode;
13552
13552
  type ValueOverrideConfiguration = Record<string, ValueOverrideFunction>;
13553
13553
  type WfoSubscriptionDetailGeneralConfiguration = {
13554
13554
  id: string;
@@ -14392,7 +14392,7 @@ declare const getLatestTaskDate: (processes: SubscriptionDetailProcess[]) => str
14392
14392
  declare const sortProcessesByDate: (processList: SubscriptionDetailProcess[], sortOrder: SortOrder) => SubscriptionDetailProcess[];
14393
14393
 
14394
14394
  declare const useSubscriptionDetailValueOverride: () => {
14395
- getOverriddenValue: (fieldValue: FieldValue | RenderableFieldValue) => React__default.ReactNode | null;
14395
+ getOverriddenValue: (fieldValue: FieldValue | RenderableFieldValue, allFieldValues: FieldValue[] | RenderableFieldValue[]) => React__default.ReactNode | null;
14396
14396
  };
14397
14397
 
14398
14398
  declare const useSubscriptionDetailGeneralSectionConfigurationOverride: () => {
@@ -14465,6 +14465,7 @@ declare const WfoSubscriptionProductBlock: ({ productBlock, subscriptionId, subs
14465
14465
 
14466
14466
  type WfoProductBlockKeyValueRowProps = {
14467
14467
  fieldValue: FieldValue | RenderableFieldValue;
14468
+ allFieldValues: FieldValue[] | RenderableFieldValue[];
14468
14469
  };
14469
14470
  declare const WfoProductBlockKeyValueRow: FC<WfoProductBlockKeyValueRowProps>;
14470
14471
 
@@ -15274,7 +15275,7 @@ declare const METADATA_PRODUCT_BLOCK_ENDPOINT = "product_blocks";
15274
15275
  declare const METADATA_RESOURCE_TYPE_ENDPOINT = "resource_types";
15275
15276
  declare const METADATA_WORKFLOWS_ENDPOINT = "workflows";
15276
15277
 
15277
- declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "3.7.0";
15278
+ declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "3.8.0";
15278
15279
 
15279
15280
  declare const useGetTranslationMessages: (locale: string | undefined) => {
15280
15281
  pydanticForms: {
package/dist/index.js CHANGED
@@ -26797,7 +26797,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
26797
26797
  })(PolicyResource || {});
26798
26798
 
26799
26799
  // src/configuration/version.ts
26800
- var ORCHESTRATOR_UI_LIBRARY_VERSION = "3.7.0";
26800
+ var ORCHESTRATOR_UI_LIBRARY_VERSION = "3.8.0";
26801
26801
 
26802
26802
  // src/types/types.ts
26803
26803
  var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
@@ -37257,7 +37257,7 @@ var getMenuStyles = ({ theme }) => {
37257
37257
  ".euiSideNavItem--branch": {
37258
37258
  "&:after": {
37259
37259
  backgroundColor: theme.colors.lightShade,
37260
- height: "120%"
37260
+ height: "100%"
37261
37261
  },
37262
37262
  ":last-child": {
37263
37263
  "&:after": {
@@ -39215,13 +39215,13 @@ var useSubscriptionDetailValueOverride = () => {
39215
39215
  const valueOverrideConfiguration = useAppSelector(
39216
39216
  (state) => state.orchestratorComponentOverride?.subscriptionDetail?.valueOverrides
39217
39217
  );
39218
- const getOverriddenValue = (fieldValue) => {
39218
+ const getOverriddenValue = (fieldValue, allFieldValues) => {
39219
39219
  if (!valueOverrideConfiguration) {
39220
39220
  return null;
39221
39221
  }
39222
39222
  const renderFunctionForField = valueOverrideConfiguration[fieldValue.field];
39223
39223
  if (renderFunctionForField) {
39224
- return renderFunctionForField(fieldValue);
39224
+ return renderFunctionForField(fieldValue, allFieldValues);
39225
39225
  }
39226
39226
  return null;
39227
39227
  };
@@ -42047,7 +42047,8 @@ var WfoSubscriptionProductBlock = ({
42047
42047
  return /* @__PURE__ */ jsx123(
42048
42048
  WfoProductBlockKeyValueRow,
42049
42049
  {
42050
- fieldValue: productBlockInstanceValue
42050
+ fieldValue: productBlockInstanceValue,
42051
+ allFieldValues: productBlock.productBlockInstanceValues
42051
42052
  },
42052
42053
  index
42053
42054
  );
@@ -42063,7 +42064,7 @@ var WfoSubscriptionProductBlock = ({
42063
42064
  // src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoProductBlockKeyValueRow.tsx
42064
42065
  import { EuiBadge as EuiBadge3 } from "@elastic/eui";
42065
42066
  import { Fragment as Fragment28, jsx as jsx124, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
42066
- var WfoProductBlockKeyValueRow = ({ fieldValue }) => {
42067
+ var WfoProductBlockKeyValueRow = ({ fieldValue, allFieldValues }) => {
42067
42068
  const { leftColumnStyle, rowStyle } = useWithOrchestratorTheme(getStyles6);
42068
42069
  const { getOverriddenValue } = useSubscriptionDetailValueOverride();
42069
42070
  const { field, value } = fieldValue;
@@ -42079,7 +42080,7 @@ var WfoProductBlockKeyValueRow = ({ fieldValue }) => {
42079
42080
  };
42080
42081
  return /* @__PURE__ */ jsxs69("tr", { css: rowStyle, children: [
42081
42082
  /* @__PURE__ */ jsx124("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx124("b", { children: camelToHuman(field) }) }),
42082
- /* @__PURE__ */ jsx124("td", { children: getOverriddenValue(fieldValue) ?? /* @__PURE__ */ jsx124(WfoProductBlockValue, { value }) })
42083
+ /* @__PURE__ */ jsx124("td", { children: getOverriddenValue(fieldValue, allFieldValues) ?? /* @__PURE__ */ jsx124(WfoProductBlockValue, { value }) })
42083
42084
  ] });
42084
42085
  };
42085
42086