@orchestrator-ui/orchestrator-ui-components 3.7.0 → 3.8.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.
- package/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +4 -4
- package/CHANGELOG.md +16 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +23 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WfoPageTemplate/WfoSidebar/styles.ts +1 -1
- package/src/components/WfoSettings/WfoModifySettings.tsx +15 -8
- package/src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoProductBlockKeyValueRow.tsx +3 -2
- package/src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx +3 -0
- package/src/components/WfoSubscription/overrides/useSubscriptionDetailValueOverride.ts +2 -1
- package/src/configuration/policy-resources.ts +1 -0
- package/src/configuration/version.ts +1 -1
- package/src/rtk/slices/orchestratorComponentOverride.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@3.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@3.8.1 build
|
|
3
3
|
> npm run generate-version && tsup src/index.ts
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @orchestrator-ui/orchestrator-ui-components@3.
|
|
6
|
+
> @orchestrator-ui/orchestrator-ui-components@3.8.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
|
|
9
|
+
src/configuration/version.ts 130ms
|
|
10
10
|
[34mCLI[39m Building entry: src/index.ts
|
|
11
11
|
[34mCLI[39m Using tsconfig: tsconfig.build.json
|
|
12
12
|
[34mCLI[39m tsup v8.3.5
|
|
@@ -17,5 +17,5 @@ src/configuration/version.ts 132ms
|
|
|
17
17
|
[32mESM[39m [1mdist/index.js [22m[32m1.95 MB[39m
|
|
18
18
|
[32mESM[39m [1mdist/index.js.map [22m[32m3.56 MB[39m
|
|
19
19
|
[32mESM[39m ⚡️ Build success in 479ms
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m685.
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 16457ms
|
|
21
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m685.76 KB[39m
|
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@3.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@3.8.1 test
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
5
|
PASS Wfo-UI Tests src/components/WfoTree/treeUtils.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.
|
|
38
|
-
PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts (
|
|
37
|
+
PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.233 s)
|
|
38
|
+
PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts (6.907 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.
|
|
43
|
+
Time: 7.734 s
|
|
44
44
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @orchestrator-ui/orchestrator-ui-components
|
|
2
2
|
|
|
3
|
+
## 3.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e75d0e4: 1844 Adds isAllowed policy check to the start-stop-engine section
|
|
8
|
+
|
|
9
|
+
## 3.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 93d46aa: 1635 Adds extra parameter ("allFieldValues") to the override function to have all data available when overriding a specific cell value
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 6fdc33a: 1824 Fix for the thin gray line in the sidebar that went beyond settings.
|
|
18
|
+
|
|
3
19
|
## 3.7.0
|
|
4
20
|
|
|
5
21
|
### 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;
|
|
@@ -14306,6 +14306,7 @@ declare enum PolicyResource {
|
|
|
14306
14306
|
TASKS_CREATE = "/orchestrator/processes/create/task",
|
|
14307
14307
|
TASKS_RETRY_ALL = "/orchestrator/processes/all-tasks/retry",
|
|
14308
14308
|
SETTINGS_FLUSH_CACHE = "/orchestrator/settings/flush-cache",
|
|
14309
|
+
SETTINGS_START_STOP_ENGINE = "/orchestrator/settings/start-stop-engine",
|
|
14309
14310
|
SET_IN_SYNC = "/orchestrator/subscriptions/set-in-sync"
|
|
14310
14311
|
}
|
|
14311
14312
|
|
|
@@ -14392,7 +14393,7 @@ declare const getLatestTaskDate: (processes: SubscriptionDetailProcess[]) => str
|
|
|
14392
14393
|
declare const sortProcessesByDate: (processList: SubscriptionDetailProcess[], sortOrder: SortOrder) => SubscriptionDetailProcess[];
|
|
14393
14394
|
|
|
14394
14395
|
declare const useSubscriptionDetailValueOverride: () => {
|
|
14395
|
-
getOverriddenValue: (fieldValue: FieldValue | RenderableFieldValue) => React__default.ReactNode | null;
|
|
14396
|
+
getOverriddenValue: (fieldValue: FieldValue | RenderableFieldValue, allFieldValues: FieldValue[] | RenderableFieldValue[]) => React__default.ReactNode | null;
|
|
14396
14397
|
};
|
|
14397
14398
|
|
|
14398
14399
|
declare const useSubscriptionDetailGeneralSectionConfigurationOverride: () => {
|
|
@@ -14465,6 +14466,7 @@ declare const WfoSubscriptionProductBlock: ({ productBlock, subscriptionId, subs
|
|
|
14465
14466
|
|
|
14466
14467
|
type WfoProductBlockKeyValueRowProps = {
|
|
14467
14468
|
fieldValue: FieldValue | RenderableFieldValue;
|
|
14469
|
+
allFieldValues: FieldValue[] | RenderableFieldValue[];
|
|
14468
14470
|
};
|
|
14469
14471
|
declare const WfoProductBlockKeyValueRow: FC<WfoProductBlockKeyValueRowProps>;
|
|
14470
14472
|
|
|
@@ -15274,7 +15276,7 @@ declare const METADATA_PRODUCT_BLOCK_ENDPOINT = "product_blocks";
|
|
|
15274
15276
|
declare const METADATA_RESOURCE_TYPE_ENDPOINT = "resource_types";
|
|
15275
15277
|
declare const METADATA_WORKFLOWS_ENDPOINT = "workflows";
|
|
15276
15278
|
|
|
15277
|
-
declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "3.
|
|
15279
|
+
declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "3.8.1";
|
|
15278
15280
|
|
|
15279
15281
|
declare const useGetTranslationMessages: (locale: string | undefined) => {
|
|
15280
15282
|
pydanticForms: {
|
package/dist/index.js
CHANGED
|
@@ -26792,12 +26792,13 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
26792
26792
|
PolicyResource2["TASKS_CREATE"] = "/orchestrator/processes/create/task";
|
|
26793
26793
|
PolicyResource2["TASKS_RETRY_ALL"] = "/orchestrator/processes/all-tasks/retry";
|
|
26794
26794
|
PolicyResource2["SETTINGS_FLUSH_CACHE"] = "/orchestrator/settings/flush-cache";
|
|
26795
|
+
PolicyResource2["SETTINGS_START_STOP_ENGINE"] = "/orchestrator/settings/start-stop-engine";
|
|
26795
26796
|
PolicyResource2["SET_IN_SYNC"] = "/orchestrator/subscriptions/set-in-sync";
|
|
26796
26797
|
return PolicyResource2;
|
|
26797
26798
|
})(PolicyResource || {});
|
|
26798
26799
|
|
|
26799
26800
|
// src/configuration/version.ts
|
|
26800
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "3.
|
|
26801
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "3.8.1";
|
|
26801
26802
|
|
|
26802
26803
|
// src/types/types.ts
|
|
26803
26804
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
@@ -37257,7 +37258,7 @@ var getMenuStyles = ({ theme }) => {
|
|
|
37257
37258
|
".euiSideNavItem--branch": {
|
|
37258
37259
|
"&:after": {
|
|
37259
37260
|
backgroundColor: theme.colors.lightShade,
|
|
37260
|
-
height: "
|
|
37261
|
+
height: "100%"
|
|
37261
37262
|
},
|
|
37262
37263
|
":last-child": {
|
|
37263
37264
|
"&:after": {
|
|
@@ -39215,13 +39216,13 @@ var useSubscriptionDetailValueOverride = () => {
|
|
|
39215
39216
|
const valueOverrideConfiguration = useAppSelector(
|
|
39216
39217
|
(state) => state.orchestratorComponentOverride?.subscriptionDetail?.valueOverrides
|
|
39217
39218
|
);
|
|
39218
|
-
const getOverriddenValue = (fieldValue) => {
|
|
39219
|
+
const getOverriddenValue = (fieldValue, allFieldValues) => {
|
|
39219
39220
|
if (!valueOverrideConfiguration) {
|
|
39220
39221
|
return null;
|
|
39221
39222
|
}
|
|
39222
39223
|
const renderFunctionForField = valueOverrideConfiguration[fieldValue.field];
|
|
39223
39224
|
if (renderFunctionForField) {
|
|
39224
|
-
return renderFunctionForField(fieldValue);
|
|
39225
|
+
return renderFunctionForField(fieldValue, allFieldValues);
|
|
39225
39226
|
}
|
|
39226
39227
|
return null;
|
|
39227
39228
|
};
|
|
@@ -42047,7 +42048,8 @@ var WfoSubscriptionProductBlock = ({
|
|
|
42047
42048
|
return /* @__PURE__ */ jsx123(
|
|
42048
42049
|
WfoProductBlockKeyValueRow,
|
|
42049
42050
|
{
|
|
42050
|
-
fieldValue: productBlockInstanceValue
|
|
42051
|
+
fieldValue: productBlockInstanceValue,
|
|
42052
|
+
allFieldValues: productBlock.productBlockInstanceValues
|
|
42051
42053
|
},
|
|
42052
42054
|
index
|
|
42053
42055
|
);
|
|
@@ -42063,7 +42065,7 @@ var WfoSubscriptionProductBlock = ({
|
|
|
42063
42065
|
// src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoProductBlockKeyValueRow.tsx
|
|
42064
42066
|
import { EuiBadge as EuiBadge3 } from "@elastic/eui";
|
|
42065
42067
|
import { Fragment as Fragment28, jsx as jsx124, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
42066
|
-
var WfoProductBlockKeyValueRow = ({ fieldValue }) => {
|
|
42068
|
+
var WfoProductBlockKeyValueRow = ({ fieldValue, allFieldValues }) => {
|
|
42067
42069
|
const { leftColumnStyle, rowStyle } = useWithOrchestratorTheme(getStyles6);
|
|
42068
42070
|
const { getOverriddenValue } = useSubscriptionDetailValueOverride();
|
|
42069
42071
|
const { field, value } = fieldValue;
|
|
@@ -42079,7 +42081,7 @@ var WfoProductBlockKeyValueRow = ({ fieldValue }) => {
|
|
|
42079
42081
|
};
|
|
42080
42082
|
return /* @__PURE__ */ jsxs69("tr", { css: rowStyle, children: [
|
|
42081
42083
|
/* @__PURE__ */ jsx124("td", { css: leftColumnStyle, children: /* @__PURE__ */ jsx124("b", { children: camelToHuman(field) }) }),
|
|
42082
|
-
/* @__PURE__ */ jsx124("td", { children: getOverriddenValue(fieldValue) ?? /* @__PURE__ */ jsx124(WfoProductBlockValue, { value }) })
|
|
42084
|
+
/* @__PURE__ */ jsx124("td", { children: getOverriddenValue(fieldValue, allFieldValues) ?? /* @__PURE__ */ jsx124(WfoProductBlockValue, { value }) })
|
|
42083
42085
|
] });
|
|
42084
42086
|
};
|
|
42085
42087
|
|
|
@@ -51841,12 +51843,20 @@ var WfoModifySettings = () => {
|
|
|
51841
51843
|
/* @__PURE__ */ jsx225(EuiSpacer25, { size: "m" }),
|
|
51842
51844
|
/* @__PURE__ */ jsx225(WfoResetTextSearchIndexButton, {})
|
|
51843
51845
|
] }),
|
|
51844
|
-
/* @__PURE__ */
|
|
51845
|
-
|
|
51846
|
-
|
|
51847
|
-
|
|
51848
|
-
|
|
51849
|
-
|
|
51846
|
+
/* @__PURE__ */ jsxs123(
|
|
51847
|
+
WfoIsAllowedToRender,
|
|
51848
|
+
{
|
|
51849
|
+
resource: "/orchestrator/settings/start-stop-engine" /* SETTINGS_START_STOP_ENGINE */,
|
|
51850
|
+
children: [
|
|
51851
|
+
/* @__PURE__ */ jsx225(EuiSpacer25, {}),
|
|
51852
|
+
/* @__PURE__ */ jsxs123(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
51853
|
+
/* @__PURE__ */ jsx225(EuiText43, { size: "s", children: /* @__PURE__ */ jsx225("h4", { children: t("modifyEngine") }) }),
|
|
51854
|
+
/* @__PURE__ */ jsx225(EuiSpacer25, { size: "m" }),
|
|
51855
|
+
/* @__PURE__ */ jsx225(WfoEngineStatusButton, {})
|
|
51856
|
+
] })
|
|
51857
|
+
]
|
|
51858
|
+
}
|
|
51859
|
+
)
|
|
51850
51860
|
] });
|
|
51851
51861
|
};
|
|
51852
51862
|
|