@orchestrator-ui/orchestrator-ui-components 2.7.0 → 2.7.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 +5 -2
- package/.turbo/turbo-test.log +13 -13
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +60 -56
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WfoForms/formFields/SelectField/SelectField.tsx +5 -1
- package/src/configuration/version.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@2.7.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@2.7.1 build
|
|
3
3
|
> npm run generate-version && tsup src/index.ts
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @orchestrator-ui/orchestrator-ui-components@2.7.
|
|
6
|
+
> @orchestrator-ui/orchestrator-ui-components@2.7.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 60ms
|
|
10
10
|
[34mCLI[39m Building entry: src/index.ts
|
|
11
11
|
[34mCLI[39m Using tsconfig: tsconfig.build.json
|
|
12
12
|
[34mCLI[39m tsup v8.1.0
|
|
@@ -16,6 +16,6 @@ src/configuration/version.ts 57ms
|
|
|
16
16
|
[34mDTS[39m Build start
|
|
17
17
|
[32mESM[39m [1mdist/index.js [22m[32m1.90 MB[39m
|
|
18
18
|
[32mESM[39m [1mdist/index.js.map [22m[32m3.44 MB[39m
|
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
|
20
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 1164ms
|
|
20
|
+
[32mDTS[39m ⚡️ Build success in 20457ms
|
|
21
21
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m185.65 KB[39m
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@2.7.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@2.7.1 lint
|
|
3
3
|
> eslint "src/**/*.ts*"
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoForms/formFields/SelectField/SelectField.tsx
|
|
7
|
+
102:8 warning React Hook useEffect has missing dependencies: 'onChange' and 'selectedValue?.value'. Either include them or remove the dependency array. If 'onChange' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
|
|
8
|
+
|
|
6
9
|
/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoForms/formFields/deprecated/VlanField.tsx
|
|
7
10
|
168:8 warning React Hook useEffect has missing dependencies: 'disabled' and 'value'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
8
11
|
|
|
9
|
-
✖
|
|
12
|
+
✖ 2 problems (0 errors, 2 warnings)
|
|
10
13
|
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@2.7.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@2.7.1 test
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
-
PASS Wfo-UI Tests src/components/
|
|
5
|
+
PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
|
|
6
6
|
PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts
|
|
7
|
+
PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
|
|
7
8
|
PASS Wfo-UI Tests src/utils/date.spec.ts
|
|
8
|
-
PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
|
|
9
9
|
PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
|
|
10
10
|
PASS Wfo-UI Tests src/utils/string.spec.ts
|
|
11
11
|
PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
|
|
12
12
|
PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
|
|
13
|
-
PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
|
|
14
13
|
PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
|
|
15
|
-
PASS Wfo-UI Tests src/components/WfoTable/utils/
|
|
14
|
+
PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
|
|
16
15
|
PASS Wfo-UI Tests src/rtk/utils.spec.ts
|
|
17
|
-
PASS Wfo-UI Tests src/components/
|
|
16
|
+
PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
|
|
18
17
|
PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
|
|
19
|
-
PASS Wfo-UI Tests src/
|
|
18
|
+
PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
|
|
20
19
|
PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
|
|
21
|
-
PASS Wfo-UI Tests src/
|
|
20
|
+
PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
|
|
22
21
|
PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
|
|
23
|
-
PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
|
|
24
22
|
PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
|
|
23
|
+
PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
|
|
24
|
+
PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
|
|
25
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
28
|
PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
|
|
29
29
|
PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
|
|
30
30
|
PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
|
|
31
|
-
PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.spec.ts
|
|
32
31
|
PASS Wfo-UI Tests src/utils/uuid.spec.ts
|
|
33
|
-
PASS Wfo-UI Tests src/utils/
|
|
32
|
+
PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.spec.ts
|
|
34
33
|
PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
|
|
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.
|
|
36
|
+
PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (7.932 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:
|
|
41
|
+
Time: 11.104 s
|
|
42
42
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2998,7 +2998,7 @@ declare const IPAM_IP_BLOCKS_ENDPOINT: string;
|
|
|
2998
2998
|
declare const IPAM_FREE_SUBNETS_ENDPOINT: string;
|
|
2999
2999
|
declare const SUBSCRIPTION_ACTIONS_ENDPOINT = "subscriptions/workflows";
|
|
3000
3000
|
|
|
3001
|
-
declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "2.7.
|
|
3001
|
+
declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "2.7.1";
|
|
3002
3002
|
|
|
3003
3003
|
declare const useGetTranslationMessages: (locale: string | undefined) => {
|
|
3004
3004
|
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.7.
|
|
26795
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "2.7.1";
|
|
26796
26796
|
|
|
26797
26797
|
// src/types/types.ts
|
|
26798
26798
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
@@ -43070,6 +43070,7 @@ import { get as get3 } from "lodash";
|
|
|
43070
43070
|
import { joinName as joinName5, useField as useField5, useForm as useForm4 } from "uniforms";
|
|
43071
43071
|
|
|
43072
43072
|
// src/components/WfoForms/formFields/SelectField/SelectField.tsx
|
|
43073
|
+
import { useEffect as useEffect10 } from "react";
|
|
43073
43074
|
import ReactSelect from "react-select";
|
|
43074
43075
|
import { get as get2 } from "lodash";
|
|
43075
43076
|
import { useTranslations as useTranslations38 } from "next-intl";
|
|
@@ -43166,6 +43167,9 @@ function UnconnectedSelectField({
|
|
|
43166
43167
|
(option) => option.value === value
|
|
43167
43168
|
);
|
|
43168
43169
|
const { reactSelectInnerComponentStyles, formRowStyle } = useWithOrchestratorTheme(getSelectFieldStyles);
|
|
43170
|
+
useEffect10(() => {
|
|
43171
|
+
onChange(selectedValue?.value);
|
|
43172
|
+
}, []);
|
|
43169
43173
|
if (fieldType === Array) {
|
|
43170
43174
|
return /* @__PURE__ */ jsx141(ListField, { name, children: /* @__PURE__ */ jsx141(ListItemField, { name: "$", children: /* @__PURE__ */ jsx141(
|
|
43171
43175
|
ListSelectField,
|
|
@@ -43616,7 +43620,7 @@ function Date2({
|
|
|
43616
43620
|
var DateField = connectField15(Date2, { kind: "leaf" });
|
|
43617
43621
|
|
|
43618
43622
|
// src/components/WfoForms/formFields/LocationCodeField.tsx
|
|
43619
|
-
import { useEffect as
|
|
43623
|
+
import { useEffect as useEffect11, useState as useState19 } from "react";
|
|
43620
43624
|
import { useTranslations as useTranslations39 } from "next-intl";
|
|
43621
43625
|
import { connectField as connectField16, filterDOMProps as filterDOMProps16 } from "uniforms";
|
|
43622
43626
|
|
|
@@ -43729,7 +43733,7 @@ function LocationCode({ locationCodes, ...props }) {
|
|
|
43729
43733
|
const t = useTranslations39("pydanticForms");
|
|
43730
43734
|
const [codes, setCodes] = useState19(locationCodes ?? []);
|
|
43731
43735
|
const { data, error } = useLocationCodesQuery();
|
|
43732
|
-
|
|
43736
|
+
useEffect11(() => {
|
|
43733
43737
|
if (data) {
|
|
43734
43738
|
setCodes(data);
|
|
43735
43739
|
}
|
|
@@ -43750,7 +43754,7 @@ function LocationCode({ locationCodes, ...props }) {
|
|
|
43750
43754
|
var LocationCodeField = connectField16(LocationCode, { kind: "leaf" });
|
|
43751
43755
|
|
|
43752
43756
|
// src/components/WfoForms/formFields/deprecated/ContactPersonAutocomplete.tsx
|
|
43753
|
-
import { useEffect as
|
|
43757
|
+
import { useEffect as useEffect12, useRef as useRef6 } from "react";
|
|
43754
43758
|
import scrollIntoView from "scroll-into-view";
|
|
43755
43759
|
import { EuiFlexItem as EuiFlexItem16 } from "@elastic/eui";
|
|
43756
43760
|
|
|
@@ -43872,7 +43876,7 @@ var ContactPersonAutocomplete = ({
|
|
|
43872
43876
|
}) => {
|
|
43873
43877
|
const { contactPersonAutocompleteStyling } = useWithOrchestratorTheme(getStyles11);
|
|
43874
43878
|
const selectedRowRef = useRef6(null);
|
|
43875
|
-
|
|
43879
|
+
useEffect12(() => {
|
|
43876
43880
|
if (!isEmpty(suggestions) && selectedRowRef.current) {
|
|
43877
43881
|
scrollIntoView(selectedRowRef.current);
|
|
43878
43882
|
}
|
|
@@ -43906,7 +43910,7 @@ var ContactPersonAutocomplete = ({
|
|
|
43906
43910
|
};
|
|
43907
43911
|
|
|
43908
43912
|
// src/components/WfoForms/formFields/deprecated/ContactPersonNameField.tsx
|
|
43909
|
-
import
|
|
43913
|
+
import React36, { useEffect as useEffect13, useState as useState20 } from "react";
|
|
43910
43914
|
import { isFunction as isFunction2 } from "lodash";
|
|
43911
43915
|
import get4 from "lodash/get";
|
|
43912
43916
|
import { useTranslations as useTranslations40 } from "next-intl";
|
|
@@ -43934,7 +43938,7 @@ filterDOMProps17.register(
|
|
|
43934
43938
|
function ContactPersonName({
|
|
43935
43939
|
disabled,
|
|
43936
43940
|
id,
|
|
43937
|
-
inputRef =
|
|
43941
|
+
inputRef = React36.createRef(),
|
|
43938
43942
|
label,
|
|
43939
43943
|
description,
|
|
43940
43944
|
name,
|
|
@@ -43985,7 +43989,7 @@ function ContactPersonName({
|
|
|
43985
43989
|
(person) => person.email === item.email
|
|
43986
43990
|
)
|
|
43987
43991
|
) : [];
|
|
43988
|
-
|
|
43992
|
+
useEffect13(() => {
|
|
43989
43993
|
if (customerIdValue) {
|
|
43990
43994
|
if (data) {
|
|
43991
43995
|
setContactPersons(data);
|
|
@@ -43995,7 +43999,7 @@ function ContactPersonName({
|
|
|
43995
43999
|
}
|
|
43996
44000
|
}
|
|
43997
44001
|
}, [customerIdValue, data, fetchError]);
|
|
43998
|
-
|
|
44002
|
+
useEffect13(() => {
|
|
43999
44003
|
if (!isFunction2(inputRef)) {
|
|
44000
44004
|
inputRef.current?.focus();
|
|
44001
44005
|
}
|
|
@@ -44090,7 +44094,7 @@ var ContactPersonNameField = connectField17(ContactPersonName, {
|
|
|
44090
44094
|
});
|
|
44091
44095
|
|
|
44092
44096
|
// src/components/WfoForms/formFields/deprecated/ImsNodeIdField.tsx
|
|
44093
|
-
import { useEffect as
|
|
44097
|
+
import { useEffect as useEffect14, useState as useState21 } from "react";
|
|
44094
44098
|
import { get as get5 } from "lodash";
|
|
44095
44099
|
import { useTranslations as useTranslations41 } from "next-intl";
|
|
44096
44100
|
import { connectField as connectField18, filterDOMProps as filterDOMProps18 } from "uniforms";
|
|
@@ -44114,7 +44118,7 @@ function ImsNodeId({
|
|
|
44114
44118
|
},
|
|
44115
44119
|
{ skip: !(locationCode && status) }
|
|
44116
44120
|
);
|
|
44117
|
-
|
|
44121
|
+
useEffect14(() => {
|
|
44118
44122
|
if (data) {
|
|
44119
44123
|
setNodes(data);
|
|
44120
44124
|
}
|
|
@@ -44143,7 +44147,7 @@ function ImsNodeId({
|
|
|
44143
44147
|
var ImsNodeIdField = connectField18(ImsNodeId, { kind: "leaf" });
|
|
44144
44148
|
|
|
44145
44149
|
// src/components/WfoForms/formFields/deprecated/ImsPortIdField.tsx
|
|
44146
|
-
import { useCallback as useCallback4, useEffect as
|
|
44150
|
+
import { useCallback as useCallback4, useEffect as useEffect15, useState as useState22 } from "react";
|
|
44147
44151
|
import ReactSelect2 from "react-select";
|
|
44148
44152
|
import { useTranslations as useTranslations42 } from "next-intl";
|
|
44149
44153
|
import { connectField as connectField19, filterDOMProps as filterDOMProps19 } from "uniforms";
|
|
@@ -44223,7 +44227,7 @@ function ImsPortId({
|
|
|
44223
44227
|
const { data: nodeSubscriptionOptions } = useGetNodeSubscriptionOptionsQuery({
|
|
44224
44228
|
statuses: nodeStatuses?.join("|") ?? "active"
|
|
44225
44229
|
});
|
|
44226
|
-
|
|
44230
|
+
useEffect15(() => {
|
|
44227
44231
|
setPorts(freePorts ?? []);
|
|
44228
44232
|
}, [freePorts, freePortsError]);
|
|
44229
44233
|
const onChangeNodes = useCallback4(
|
|
@@ -44317,7 +44321,7 @@ import { connectField as connectField20, filterDOMProps as filterDOMProps20 } fr
|
|
|
44317
44321
|
import { EuiCallOut as EuiCallOut2, EuiFormRow as EuiFormRow14, EuiText as EuiText26 } from "@elastic/eui";
|
|
44318
44322
|
|
|
44319
44323
|
// src/components/WfoForms/formFields/deprecated/SplitPrefix.tsx
|
|
44320
|
-
import { useEffect as
|
|
44324
|
+
import { useEffect as useEffect16, useState as useState23 } from "react";
|
|
44321
44325
|
import ReactSelect3 from "react-select";
|
|
44322
44326
|
import { range as range2 } from "lodash";
|
|
44323
44327
|
import { EuiFlexItem as EuiFlexItem18 } from "@elastic/eui";
|
|
@@ -44383,7 +44387,7 @@ var SplitPrefix = ({
|
|
|
44383
44387
|
netmask: prefixlen,
|
|
44384
44388
|
prefixLen: desiredPrefixlen
|
|
44385
44389
|
});
|
|
44386
|
-
|
|
44390
|
+
useEffect16(() => {
|
|
44387
44391
|
if (isFetching) {
|
|
44388
44392
|
setSubnets([]);
|
|
44389
44393
|
}
|
|
@@ -44463,7 +44467,7 @@ var SplitPrefix = ({
|
|
|
44463
44467
|
var SplitPrefix_default = SplitPrefix;
|
|
44464
44468
|
|
|
44465
44469
|
// src/components/WfoForms/formFields/deprecated/IpPrefixTableField.tsx
|
|
44466
|
-
import { useCallback as useCallback5, useEffect as
|
|
44470
|
+
import { useCallback as useCallback5, useEffect as useEffect17, useState as useState24 } from "react";
|
|
44467
44471
|
import ReactSelect4 from "react-select";
|
|
44468
44472
|
import {
|
|
44469
44473
|
EuiBadge as EuiBadge4,
|
|
@@ -44519,7 +44523,7 @@ var IpPrefixTableField = ({
|
|
|
44519
44523
|
const { data: ipBlocksData, isFetching } = useIpBlocksQuery({
|
|
44520
44524
|
parentPrefix
|
|
44521
44525
|
});
|
|
44522
|
-
|
|
44526
|
+
useEffect17(() => {
|
|
44523
44527
|
if (prefixFiltersData) {
|
|
44524
44528
|
setFilteredPrefixes(prefixFiltersData);
|
|
44525
44529
|
setFilter((prevFilter) => ({
|
|
@@ -44528,7 +44532,7 @@ var IpPrefixTableField = ({
|
|
|
44528
44532
|
}));
|
|
44529
44533
|
}
|
|
44530
44534
|
}, [prefixFiltersData]);
|
|
44531
|
-
|
|
44535
|
+
useEffect17(() => {
|
|
44532
44536
|
if (ipBlocksData) {
|
|
44533
44537
|
const selectedPrefix = filteredPrefixes.find(
|
|
44534
44538
|
(prefix) => prefix.id === parentPrefix
|
|
@@ -45070,7 +45074,7 @@ function Timestamp({
|
|
|
45070
45074
|
var TimestampField = connectField21(Timestamp, { kind: "leaf" });
|
|
45071
45075
|
|
|
45072
45076
|
// src/components/WfoForms/formFields/deprecated/VlanField.tsx
|
|
45073
|
-
import { useEffect as
|
|
45077
|
+
import { useEffect as useEffect18, useState as useState26 } from "react";
|
|
45074
45078
|
import get6 from "lodash/get";
|
|
45075
45079
|
import { useTranslations as useTranslations44 } from "next-intl";
|
|
45076
45080
|
import { connectField as connectField22, filterDOMProps as filterDOMProps22, joinName as joinName7, useForm as useForm7 } from "uniforms";
|
|
@@ -45174,7 +45178,7 @@ function Vlan({
|
|
|
45174
45178
|
const extraUsedVlans = completeList.filter(
|
|
45175
45179
|
(_item, index) => index.toString() !== nameArray.slice(-2, -1)[0]
|
|
45176
45180
|
).filter((item) => get6(item, subscriptionFieldName) === subscriptionId).map((item) => get6(item, selfName)).join(",");
|
|
45177
|
-
|
|
45181
|
+
useEffect18(() => {
|
|
45178
45182
|
if (subscriptionId && isFetched && !portIsTagged && value !== "0") {
|
|
45179
45183
|
onChange("0");
|
|
45180
45184
|
} else if (!disabled && (!subscriptionId && value !== "" || subscriptionId && portIsTagged && value === "0")) {
|
|
@@ -45193,7 +45197,7 @@ function Vlan({
|
|
|
45193
45197
|
skip: !subscriptionId
|
|
45194
45198
|
}
|
|
45195
45199
|
);
|
|
45196
|
-
|
|
45200
|
+
useEffect18(() => {
|
|
45197
45201
|
if (data) {
|
|
45198
45202
|
setUsedVlansInIms(data);
|
|
45199
45203
|
setMissingInIms(false);
|
|
@@ -46395,7 +46399,7 @@ function WfoUserInputForm({
|
|
|
46395
46399
|
}
|
|
46396
46400
|
|
|
46397
46401
|
// src/components/WfoForms/UserInputFormWizard.tsx
|
|
46398
|
-
import { useEffect as
|
|
46402
|
+
import { useEffect as useEffect19, useState as useState28 } from "react";
|
|
46399
46403
|
import { useRouter as useRouter6 } from "next/router";
|
|
46400
46404
|
import hash from "object-hash";
|
|
46401
46405
|
import { jsx as jsx167 } from "@emotion/react/jsx-runtime";
|
|
@@ -46418,7 +46422,7 @@ var UserInputFormWizard = ({
|
|
|
46418
46422
|
{ form: stepUserInput, hasNext }
|
|
46419
46423
|
]);
|
|
46420
46424
|
const [userInputs, setUserInputs] = useState28([]);
|
|
46421
|
-
|
|
46425
|
+
useEffect19(() => {
|
|
46422
46426
|
setForms([{ form: stepUserInput, hasNext }]);
|
|
46423
46427
|
}, [hasNext, stepUserInput]);
|
|
46424
46428
|
const previous = (e) => {
|
|
@@ -46471,7 +46475,7 @@ var UserInputFormWizard = ({
|
|
|
46471
46475
|
};
|
|
46472
46476
|
|
|
46473
46477
|
// src/components/WfoForms/CreateForm.tsx
|
|
46474
|
-
import { useCallback as useCallback6, useEffect as
|
|
46478
|
+
import { useCallback as useCallback6, useEffect as useEffect20, useState as useState29 } from "react";
|
|
46475
46479
|
import { jsx as jsx168 } from "@emotion/react/jsx-runtime";
|
|
46476
46480
|
function CreateForm(props) {
|
|
46477
46481
|
const { preselectedInput, formKey, handleSubmit, handleCancel } = props;
|
|
@@ -46486,7 +46490,7 @@ function CreateForm(props) {
|
|
|
46486
46490
|
},
|
|
46487
46491
|
[formKey, handleSubmit, startForm]
|
|
46488
46492
|
);
|
|
46489
|
-
|
|
46493
|
+
useEffect20(() => {
|
|
46490
46494
|
if (formKey) {
|
|
46491
46495
|
handlePromiseErrorWithCallback(
|
|
46492
46496
|
submit([]),
|
|
@@ -46621,7 +46625,7 @@ import { useTranslations as useTranslations69 } from "next-intl";
|
|
|
46621
46625
|
import Link8 from "next/link";
|
|
46622
46626
|
|
|
46623
46627
|
// src/pages/metadata/WfoProductBlocksPage.tsx
|
|
46624
|
-
import { useEffect as
|
|
46628
|
+
import { useEffect as useEffect21, useState as useState31 } from "react";
|
|
46625
46629
|
import { useTranslations as useTranslations51 } from "next-intl";
|
|
46626
46630
|
import { EuiBadgeGroup as EuiBadgeGroup2 } from "@elastic/eui";
|
|
46627
46631
|
|
|
@@ -46691,7 +46695,7 @@ var WfoProductBlocksPage = () => {
|
|
|
46691
46695
|
const getStoredTableConfig = useStoredTableConfig(
|
|
46692
46696
|
METADATA_PRODUCT_BLOCKS_TABLE_LOCAL_STORAGE_KEY
|
|
46693
46697
|
);
|
|
46694
|
-
|
|
46698
|
+
useEffect21(() => {
|
|
46695
46699
|
const storedConfig = getStoredTableConfig();
|
|
46696
46700
|
if (storedConfig) {
|
|
46697
46701
|
setTableDefaults(storedConfig);
|
|
@@ -46871,7 +46875,7 @@ var WfoProductBlocksPage = () => {
|
|
|
46871
46875
|
};
|
|
46872
46876
|
|
|
46873
46877
|
// src/pages/metadata/WfoResourceTypesPage.tsx
|
|
46874
|
-
import { useEffect as
|
|
46878
|
+
import { useEffect as useEffect22, useState as useState32 } from "react";
|
|
46875
46879
|
import { useTranslations as useTranslations52 } from "next-intl";
|
|
46876
46880
|
import { EuiBadgeGroup as EuiBadgeGroup3 } from "@elastic/eui";
|
|
46877
46881
|
import { Fragment as Fragment40, jsx as jsx176, jsxs as jsxs96 } from "@emotion/react/jsx-runtime";
|
|
@@ -46884,7 +46888,7 @@ var WfoResourceTypesPage = () => {
|
|
|
46884
46888
|
const getStoredTableConfig = useStoredTableConfig(
|
|
46885
46889
|
METADATA_RESOURCE_TYPES_TABLE_LOCAL_STORAGE_KEY
|
|
46886
46890
|
);
|
|
46887
|
-
|
|
46891
|
+
useEffect22(() => {
|
|
46888
46892
|
const storedConfig = getStoredTableConfig();
|
|
46889
46893
|
if (storedConfig) {
|
|
46890
46894
|
setTableDefaults(storedConfig);
|
|
@@ -47021,7 +47025,7 @@ var WfoResourceTypesPage = () => {
|
|
|
47021
47025
|
};
|
|
47022
47026
|
|
|
47023
47027
|
// src/pages/metadata/WfoProductsPage.tsx
|
|
47024
|
-
import { useEffect as
|
|
47028
|
+
import { useEffect as useEffect23, useState as useState33 } from "react";
|
|
47025
47029
|
import { useTranslations as useTranslations53 } from "next-intl";
|
|
47026
47030
|
import { Fragment as Fragment41, jsx as jsx177, jsxs as jsxs97 } from "@emotion/react/jsx-runtime";
|
|
47027
47031
|
var PRODUCT_FIELD_NAME = "name";
|
|
@@ -47033,7 +47037,7 @@ var WfoProductsPage = () => {
|
|
|
47033
47037
|
const getStoredTableConfig = useStoredTableConfig(
|
|
47034
47038
|
METADATA_PRODUCT_TABLE_LOCAL_STORAGE_KEY
|
|
47035
47039
|
);
|
|
47036
|
-
|
|
47040
|
+
useEffect23(() => {
|
|
47037
47041
|
const storedConfig = getStoredTableConfig();
|
|
47038
47042
|
if (storedConfig) {
|
|
47039
47043
|
setTableDefaults(storedConfig);
|
|
@@ -47224,7 +47228,7 @@ var WfoProductsPage = () => {
|
|
|
47224
47228
|
};
|
|
47225
47229
|
|
|
47226
47230
|
// src/pages/metadata/WfoWorkflowsPage.tsx
|
|
47227
|
-
import { useEffect as
|
|
47231
|
+
import { useEffect as useEffect24, useState as useState34 } from "react";
|
|
47228
47232
|
import { useTranslations as useTranslations54 } from "next-intl";
|
|
47229
47233
|
import { EuiBadgeGroup as EuiBadgeGroup4 } from "@elastic/eui";
|
|
47230
47234
|
|
|
@@ -47266,7 +47270,7 @@ var WfoWorkflowsPage = () => {
|
|
|
47266
47270
|
const getStoredTableConfig = useStoredTableConfig(
|
|
47267
47271
|
METADATA_WORKFLOWS_TABLE_LOCAL_STORAGE_KEY
|
|
47268
47272
|
);
|
|
47269
|
-
|
|
47273
|
+
useEffect24(() => {
|
|
47270
47274
|
const storedConfig = getStoredTableConfig();
|
|
47271
47275
|
if (storedConfig) {
|
|
47272
47276
|
setTableDefaults(storedConfig);
|
|
@@ -47414,7 +47418,7 @@ var WfoWorkflowsPage = () => {
|
|
|
47414
47418
|
};
|
|
47415
47419
|
|
|
47416
47420
|
// src/pages/metadata/WfoTasksPage.tsx
|
|
47417
|
-
import { useEffect as
|
|
47421
|
+
import { useEffect as useEffect25, useState as useState35 } from "react";
|
|
47418
47422
|
import { useTranslations as useTranslations55 } from "next-intl";
|
|
47419
47423
|
import { EuiBadgeGroup as EuiBadgeGroup5 } from "@elastic/eui";
|
|
47420
47424
|
|
|
@@ -47456,7 +47460,7 @@ var WfoTasksPage = () => {
|
|
|
47456
47460
|
const getStoredTableConfig = useStoredTableConfig(
|
|
47457
47461
|
METADATA_TASKS_TABLE_LOCAL_STORAGE_KEY
|
|
47458
47462
|
);
|
|
47459
|
-
|
|
47463
|
+
useEffect25(() => {
|
|
47460
47464
|
const storedConfig = getStoredTableConfig();
|
|
47461
47465
|
if (storedConfig) {
|
|
47462
47466
|
setTableDefaults(storedConfig);
|
|
@@ -48194,7 +48198,7 @@ var WfoProcessDetailPage = ({
|
|
|
48194
48198
|
};
|
|
48195
48199
|
|
|
48196
48200
|
// src/pages/processes/WfoStartProcessPage.tsx
|
|
48197
|
-
import { useCallback as useCallback8, useEffect as
|
|
48201
|
+
import { useCallback as useCallback8, useEffect as useEffect28, useMemo as useMemo5, useState as useState40 } from "react";
|
|
48198
48202
|
import { useTranslations as useTranslations62 } from "next-intl";
|
|
48199
48203
|
import { useRouter as useRouter9 } from "next/router";
|
|
48200
48204
|
import {
|
|
@@ -48206,7 +48210,7 @@ import {
|
|
|
48206
48210
|
} from "@elastic/eui";
|
|
48207
48211
|
|
|
48208
48212
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
48209
|
-
import
|
|
48213
|
+
import React56 from "react";
|
|
48210
48214
|
import { useTranslations as useTranslations57 } from "next-intl";
|
|
48211
48215
|
import { EuiFlexGroup as EuiFlexGroup22, EuiFlexItem as EuiFlexItem26, EuiPanel as EuiPanel5, EuiText as EuiText33 } from "@elastic/eui";
|
|
48212
48216
|
|
|
@@ -48481,7 +48485,7 @@ var WfoStepForm = ({
|
|
|
48481
48485
|
|
|
48482
48486
|
// src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx
|
|
48483
48487
|
import { Fragment as Fragment46, jsx as jsx185, jsxs as jsxs103 } from "@emotion/react/jsx-runtime";
|
|
48484
|
-
var WfoStep =
|
|
48488
|
+
var WfoStep = React56.forwardRef(
|
|
48485
48489
|
({
|
|
48486
48490
|
stepListItem,
|
|
48487
48491
|
onToggleStepDetail,
|
|
@@ -48620,9 +48624,9 @@ var WfoStep = React55.forwardRef(
|
|
|
48620
48624
|
WfoStep.displayName = "WfoStep";
|
|
48621
48625
|
|
|
48622
48626
|
// src/components/WfoWorkflowSteps/WfoStepList/WfoStepList.tsx
|
|
48623
|
-
import
|
|
48627
|
+
import React57, { useImperativeHandle as useImperativeHandle2, useRef as useRef8 } from "react";
|
|
48624
48628
|
import { Fragment as Fragment47, jsx as jsx186, jsxs as jsxs104 } from "@emotion/react/jsx-runtime";
|
|
48625
|
-
var WfoStepList =
|
|
48629
|
+
var WfoStepList = React57.forwardRef(
|
|
48626
48630
|
({
|
|
48627
48631
|
stepListItems,
|
|
48628
48632
|
showHiddenKeys,
|
|
@@ -48696,12 +48700,12 @@ var WfoStepList = React56.forwardRef(
|
|
|
48696
48700
|
WfoStepList.displayName = "WfoStepList";
|
|
48697
48701
|
|
|
48698
48702
|
// src/components/WfoWorkflowSteps/WfoWorkflowStepList/WfoWorkflowStepList.tsx
|
|
48699
|
-
import
|
|
48703
|
+
import React59, { useEffect as useEffect27, useState as useState38 } from "react";
|
|
48700
48704
|
import { useTranslations as useTranslations60 } from "next-intl";
|
|
48701
48705
|
|
|
48702
48706
|
// src/components/WfoDiff/WfoDiff.tsx
|
|
48703
48707
|
var refractor = __toESM(require_refractor(), 1);
|
|
48704
|
-
import { useCallback as useCallback7, useEffect as
|
|
48708
|
+
import { useCallback as useCallback7, useEffect as useEffect26, useMemo as useMemo4, useState as useState37 } from "react";
|
|
48705
48709
|
import { Diff, Hunk, parseDiff, tokenize } from "react-diff-view";
|
|
48706
48710
|
import "react-diff-view/style/index.css";
|
|
48707
48711
|
import { useTranslations as useTranslations58 } from "next-intl";
|
|
@@ -48787,7 +48791,7 @@ var WfoDiff = ({ oldText, newText, syntax }) => {
|
|
|
48787
48791
|
return void 0;
|
|
48788
48792
|
}
|
|
48789
48793
|
}, [hunks, syntax]);
|
|
48790
|
-
|
|
48794
|
+
useEffect26(() => {
|
|
48791
48795
|
updateDiffText();
|
|
48792
48796
|
}, [updateDiffText, showFull]);
|
|
48793
48797
|
return /* @__PURE__ */ jsxs105("div", { children: [
|
|
@@ -48882,7 +48886,7 @@ var WfoProcessSubscriptionDelta = ({
|
|
|
48882
48886
|
}
|
|
48883
48887
|
);
|
|
48884
48888
|
};
|
|
48885
|
-
var WfoWorkflowStepList =
|
|
48889
|
+
var WfoWorkflowStepList = React59.forwardRef(
|
|
48886
48890
|
({
|
|
48887
48891
|
steps = [],
|
|
48888
48892
|
traceBack,
|
|
@@ -48917,7 +48921,7 @@ var WfoWorkflowStepList = React58.forwardRef(
|
|
|
48917
48921
|
};
|
|
48918
48922
|
});
|
|
48919
48923
|
};
|
|
48920
|
-
|
|
48924
|
+
useEffect27(() => {
|
|
48921
48925
|
setStepListItems(
|
|
48922
48926
|
(previousStepListItems) => persistStepListItemState(
|
|
48923
48927
|
previousStepListItems,
|
|
@@ -49238,7 +49242,7 @@ var WfoStartProcessPage = ({
|
|
|
49238
49242
|
},
|
|
49239
49243
|
[startProcess, processName, startProcessPayload, isTask, router]
|
|
49240
49244
|
);
|
|
49241
|
-
|
|
49245
|
+
useEffect28(() => {
|
|
49242
49246
|
if (processName) {
|
|
49243
49247
|
const clientResultCallback = (json) => {
|
|
49244
49248
|
setForm({
|
|
@@ -49431,7 +49435,7 @@ var WfoSubscriptionDetailPage = () => {
|
|
|
49431
49435
|
};
|
|
49432
49436
|
|
|
49433
49437
|
// src/pages/subscriptions/WfoSubscriptionsListPage.tsx
|
|
49434
|
-
import { useEffect as
|
|
49438
|
+
import { useEffect as useEffect29, useState as useState41 } from "react";
|
|
49435
49439
|
import { useTranslations as useTranslations66 } from "next-intl";
|
|
49436
49440
|
import { StringParam as StringParam3, useQueryParam as useQueryParam2, withDefault as withDefault3 } from "use-query-params";
|
|
49437
49441
|
import { EuiSpacer as EuiSpacer20 } from "@elastic/eui";
|
|
@@ -49442,7 +49446,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
49442
49446
|
const getStoredTableConfig = useStoredTableConfig(
|
|
49443
49447
|
SUBSCRIPTIONS_TABLE_LOCAL_STORAGE_KEY
|
|
49444
49448
|
);
|
|
49445
|
-
|
|
49449
|
+
useEffect29(() => {
|
|
49446
49450
|
const storedConfig = getStoredTableConfig();
|
|
49447
49451
|
if (storedConfig) {
|
|
49448
49452
|
setTableDefaults(storedConfig);
|
|
@@ -49503,7 +49507,7 @@ var WfoSubscriptionsListPage = () => {
|
|
|
49503
49507
|
};
|
|
49504
49508
|
|
|
49505
49509
|
// src/pages/tasks/WfoTasksListPage.tsx
|
|
49506
|
-
import { useContext as useContext9, useEffect as
|
|
49510
|
+
import { useContext as useContext9, useEffect as useEffect30, useState as useState42 } from "react";
|
|
49507
49511
|
import { useTranslations as useTranslations67 } from "next-intl";
|
|
49508
49512
|
import Link7 from "next/link";
|
|
49509
49513
|
import { useRouter as useRouter11 } from "next/router";
|
|
@@ -49589,7 +49593,7 @@ var WfoTasksListPage = () => {
|
|
|
49589
49593
|
const { showConfirmDialog } = useContext9(ConfirmationDialogContext);
|
|
49590
49594
|
const [retryAllProcesses] = useRetryAllProcessesMutation();
|
|
49591
49595
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
49592
|
-
|
|
49596
|
+
useEffect30(() => {
|
|
49593
49597
|
const storedConfig = getStoredTableConfig();
|
|
49594
49598
|
if (storedConfig) {
|
|
49595
49599
|
setTableDefaults(storedConfig);
|
|
@@ -49690,7 +49694,7 @@ var WfoTasksListPage = () => {
|
|
|
49690
49694
|
};
|
|
49691
49695
|
|
|
49692
49696
|
// src/pages/workflows/WfoWorkflowsListPage.tsx
|
|
49693
|
-
import { useEffect as
|
|
49697
|
+
import { useEffect as useEffect31, useState as useState43 } from "react";
|
|
49694
49698
|
import { useTranslations as useTranslations68 } from "next-intl";
|
|
49695
49699
|
import { useRouter as useRouter12 } from "next/router";
|
|
49696
49700
|
import { StringParam as StringParam5, useQueryParam as useQueryParam4, withDefault as withDefault5 } from "use-query-params";
|
|
@@ -49771,7 +49775,7 @@ var WfoWorkflowsListPage = () => {
|
|
|
49771
49775
|
const selectedWorkflowsListTab = getWorkflowsListTabTypeFromString(activeTab);
|
|
49772
49776
|
const localStorageKey = selectedWorkflowsListTab === "ACTIVE" /* ACTIVE */ ? ACTIVE_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY : COMPLETED_PROCESSES_LIST_TABLE_LOCAL_STORAGE_KEY;
|
|
49773
49777
|
const getStoredTableConfig = useStoredTableConfig(localStorageKey);
|
|
49774
|
-
|
|
49778
|
+
useEffect31(() => {
|
|
49775
49779
|
const storedConfig = getStoredTableConfig();
|
|
49776
49780
|
if (storedConfig) {
|
|
49777
49781
|
setTableDefaults(storedConfig);
|
|
@@ -50378,9 +50382,9 @@ var WfoWorkerStatus = () => {
|
|
|
50378
50382
|
};
|
|
50379
50383
|
|
|
50380
50384
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
50381
|
-
import
|
|
50385
|
+
import React66 from "react";
|
|
50382
50386
|
import { jsx as jsx208, jsxs as jsxs121 } from "@emotion/react/jsx-runtime";
|
|
50383
|
-
var WfoErrorBoundary = class extends
|
|
50387
|
+
var WfoErrorBoundary = class extends React66.Component {
|
|
50384
50388
|
constructor(props) {
|
|
50385
50389
|
super(props);
|
|
50386
50390
|
this.state = { hasError: false };
|
|
@@ -51436,7 +51440,7 @@ var WfoRadioDropdown = ({
|
|
|
51436
51440
|
};
|
|
51437
51441
|
|
|
51438
51442
|
// src/components/WfoInlineNoteEdit/WfoInlineNoteEdit.tsx
|
|
51439
|
-
import { useEffect as
|
|
51443
|
+
import { useEffect as useEffect32, useMemo as useMemo6, useState as useState46 } from "react";
|
|
51440
51444
|
import { EuiInlineEditText } from "@elastic/eui";
|
|
51441
51445
|
import { jsx as jsx226 } from "@emotion/react/jsx-runtime";
|
|
51442
51446
|
var WfoInlineNoteEdit = ({
|
|
@@ -51457,7 +51461,7 @@ var WfoInlineNoteEdit = ({
|
|
|
51457
51461
|
userInputs: noteModifyPayload
|
|
51458
51462
|
});
|
|
51459
51463
|
};
|
|
51460
|
-
|
|
51464
|
+
useEffect32(() => {
|
|
51461
51465
|
setNote(initialNote);
|
|
51462
51466
|
}, [initialNote]);
|
|
51463
51467
|
return /* @__PURE__ */ jsx226(
|