@orchestrator-ui/orchestrator-ui-components 6.8.0 → 7.0.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.
Files changed (101) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/.turbo/turbo-lint.log +5 -2
  3. package/.turbo/turbo-test.log +9 -10
  4. package/CHANGELOG.md +19 -0
  5. package/dist/index.d.ts +164 -4306
  6. package/dist/index.js +1739 -5747
  7. package/dist/index.js.map +1 -1
  8. package/package.json +4 -8
  9. package/src/components/WfoPydanticForm/Footer.tsx +33 -6
  10. package/src/components/WfoPydanticForm/RenderFormErrors.tsx +2 -1
  11. package/src/components/WfoPydanticForm/Row.tsx +3 -1
  12. package/src/components/WfoPydanticForm/fields/WfoInteger.tsx +5 -1
  13. package/src/components/WfoPydanticForm/fields/WfoSummary.tsx +3 -5
  14. package/src/components/WfoPydanticForm/fields/styles.ts +72 -0
  15. package/src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx +42 -54
  16. package/src/components/WfoSearchPage/utils.ts +9 -1
  17. package/src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx +10 -27
  18. package/src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx +1 -1
  19. package/src/components/index.ts +0 -1
  20. package/src/configuration/version.ts +1 -1
  21. package/src/contexts/OrchestratorConfigContext.tsx +0 -1
  22. package/src/hooks/useSearch.ts +12 -2
  23. package/src/hooks/useSearchPagination.ts +4 -0
  24. package/src/messages/en-GB.json +5 -3
  25. package/src/pages/processes/WfoStartProcessPage.tsx +5 -107
  26. package/src/rtk/endpoints/index.ts +0 -2
  27. package/src/rtk/endpoints/search.ts +13 -4
  28. package/src/types/index.ts +0 -1
  29. package/src/types/search.ts +7 -0
  30. package/src/types/types.ts +0 -1
  31. package/src/components/WfoForms/AutoFieldLoader.tsx +0 -118
  32. package/src/components/WfoForms/AutoFields.tsx +0 -49
  33. package/src/components/WfoForms/CreateForm.tsx +0 -75
  34. package/src/components/WfoForms/UserInputForm.tsx +0 -697
  35. package/src/components/WfoForms/UserInputFormStyling.ts +0 -80
  36. package/src/components/WfoForms/UserInputFormWizard.tsx +0 -127
  37. package/src/components/WfoForms/formFields/AcceptField.tsx +0 -243
  38. package/src/components/WfoForms/formFields/AcceptFieldStyling.ts +0 -35
  39. package/src/components/WfoForms/formFields/BoolField.tsx +0 -77
  40. package/src/components/WfoForms/formFields/BoolFieldStyling.ts +0 -64
  41. package/src/components/WfoForms/formFields/ConnectedSelectField.tsx +0 -19
  42. package/src/components/WfoForms/formFields/CustomerField.tsx +0 -77
  43. package/src/components/WfoForms/formFields/DateField.tsx +0 -72
  44. package/src/components/WfoForms/formFields/DividerField.tsx +0 -29
  45. package/src/components/WfoForms/formFields/ErrorField.tsx +0 -40
  46. package/src/components/WfoForms/formFields/ErrorsField.tsx +0 -34
  47. package/src/components/WfoForms/formFields/LabelField.tsx +0 -43
  48. package/src/components/WfoForms/formFields/ListAddField.tsx +0 -95
  49. package/src/components/WfoForms/formFields/ListDelField.tsx +0 -95
  50. package/src/components/WfoForms/formFields/ListField.tsx +0 -117
  51. package/src/components/WfoForms/formFields/ListItemField.tsx +0 -40
  52. package/src/components/WfoForms/formFields/ListSelectField.tsx +0 -95
  53. package/src/components/WfoForms/formFields/LocationCodeField.tsx +0 -60
  54. package/src/components/WfoForms/formFields/LongTextField.tsx +0 -68
  55. package/src/components/WfoForms/formFields/NestField.tsx +0 -107
  56. package/src/components/WfoForms/formFields/NumField.tsx +0 -85
  57. package/src/components/WfoForms/formFields/OptGroupField.tsx +0 -74
  58. package/src/components/WfoForms/formFields/RadioField.tsx +0 -87
  59. package/src/components/WfoForms/formFields/SelectField/SelectField.tsx +0 -177
  60. package/src/components/WfoForms/formFields/SelectField/index.ts +0 -1
  61. package/src/components/WfoForms/formFields/SelectField/styles.ts +0 -52
  62. package/src/components/WfoForms/formFields/SubmitField.tsx +0 -50
  63. package/src/components/WfoForms/formFields/SubscriptionSummaryField.tsx +0 -74
  64. package/src/components/WfoForms/formFields/SummaryField.tsx +0 -104
  65. package/src/components/WfoForms/formFields/SummaryFieldStyling.ts +0 -44
  66. package/src/components/WfoForms/formFields/TextField.tsx +0 -81
  67. package/src/components/WfoForms/formFields/commonStyles.ts +0 -32
  68. package/src/components/WfoForms/formFields/deprecated/ContactPersonAutocomplete.tsx +0 -99
  69. package/src/components/WfoForms/formFields/deprecated/ContactPersonAutocompleteStyles.ts +0 -41
  70. package/src/components/WfoForms/formFields/deprecated/ContactPersonNameField.tsx +0 -263
  71. package/src/components/WfoForms/formFields/deprecated/FileUploadField.tsx +0 -151
  72. package/src/components/WfoForms/formFields/deprecated/ImsNodeIdField.tsx +0 -109
  73. package/src/components/WfoForms/formFields/deprecated/ImsPortIdField.tsx +0 -233
  74. package/src/components/WfoForms/formFields/deprecated/ImsPortIdFieldStyling.ts +0 -17
  75. package/src/components/WfoForms/formFields/deprecated/IpNetworkField.tsx +0 -105
  76. package/src/components/WfoForms/formFields/deprecated/IpPrefixTableField.tsx +0 -390
  77. package/src/components/WfoForms/formFields/deprecated/IpPrefixTableFieldStyling.ts +0 -117
  78. package/src/components/WfoForms/formFields/deprecated/SplitPrefix.tsx +0 -138
  79. package/src/components/WfoForms/formFields/deprecated/SplitPrefixStyling.ts +0 -11
  80. package/src/components/WfoForms/formFields/deprecated/SubscriptionField.tsx +0 -263
  81. package/src/components/WfoForms/formFields/deprecated/SubscriptionFieldStyling.ts +0 -33
  82. package/src/components/WfoForms/formFields/deprecated/TimestampField.tsx +0 -110
  83. package/src/components/WfoForms/formFields/deprecated/VlanField.tsx +0 -300
  84. package/src/components/WfoForms/formFields/deprecated/index.ts +0 -15
  85. package/src/components/WfoForms/formFields/deprecated/types.ts +0 -74
  86. package/src/components/WfoForms/formFields/deprecated/utils.ts +0 -1
  87. package/src/components/WfoForms/formFields/index.ts +0 -30
  88. package/src/components/WfoForms/formFields/listFieldStyling.ts +0 -86
  89. package/src/components/WfoForms/formFields/types.ts +0 -41
  90. package/src/components/WfoForms/formFields/utils.spec.ts +0 -296
  91. package/src/components/WfoForms/formFields/utils.ts +0 -69
  92. package/src/components/WfoForms/index.ts +0 -5
  93. package/src/components/WfoWorkflowSteps/WfoStep/WfoStepFormOld.tsx +0 -67
  94. package/src/hooks/deprecated/useGetSurfSubcriptionDropdownOptions.ts +0 -37
  95. package/src/hooks/deprecated/useIsTaggedPort.ts +0 -25
  96. package/src/rtk/endpoints/deprecated/index.ts +0 -1
  97. package/src/rtk/endpoints/deprecated/surfSubscriptionDropdownOptions.ts +0 -53
  98. package/src/rtk/endpoints/formFields.ts +0 -131
  99. package/src/rtk/endpoints/ipam.ts +0 -54
  100. package/src/types/deprecated/SurfSubscriptionDropdownOptionsFilterParams.ts +0 -10
  101. package/src/types/deprecated/index.ts +0 -1
@@ -1,12 +1,12 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@6.8.0 build
2
+ > @orchestrator-ui/orchestrator-ui-components@7.0.1 build
3
3
  > npm run generate-version && tsup src/index.ts
4
4
 
5
5
 
6
- > @orchestrator-ui/orchestrator-ui-components@6.8.0 generate-version
6
+ > @orchestrator-ui/orchestrator-ui-components@7.0.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 147ms
9
+ src/configuration/version.ts 126ms
10
10
  CLI Building entry: src/index.ts
11
11
  CLI Using tsconfig: tsconfig.json
12
12
  CLI tsup v8.5.0
@@ -14,9 +14,9 @@ src/configuration/version.ts 147ms
14
14
  CLI Target: es2022
15
15
  CLI Cleaning output folder
16
16
  ESM Build start
17
- ESM dist/index.js 931.08 KB
18
- ESM dist/index.js.map 1.79 MB
19
- ESM ⚡️ Build success in 342ms
17
+ ESM dist/index.js 806.25 KB
18
+ ESM dist/index.js.map 1.51 MB
19
+ ESM ⚡️ Build success in 277ms
20
20
  DTS Build start
21
- DTS ⚡️ Build success in 24784ms
22
- DTS dist/index.d.ts 1.26 MB
21
+ DTS ⚡️ Build success in 18247ms
22
+ DTS dist/index.d.ts 1.08 MB
@@ -1,13 +1,16 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@6.8.0 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@7.0.1 lint
3
3
  > eslint
4
4
 
5
5
 
6
+ /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoPydanticForm/Footer.tsx
7
+ 40:11 warning The 'handlePrevious' function makes the dependencies of useEffect Hook (at line 72) change on every render. To fix this, wrap the definition of 'handlePrevious' in its own useCallback() Hook react-hooks/exhaustive-deps
8
+
6
9
  /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
7
10
  194:8 warning React Hook useEffect has missing dependencies: 'setSelectedRecordId' and 'setSelectedRecordIndex'. Either include them or remove the dependency array react-hooks/exhaustive-deps
8
11
 
9
12
  /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/hooks/usePathAutoComplete.ts
10
13
  124:8 warning React Hook useEffect has a missing dependency: 'debouncedPrefix.length'. Either include it or remove the dependency array react-hooks/exhaustive-deps
11
14
 
12
- 2 problems (0 errors, 2 warnings)
15
+ 3 problems (0 errors, 3 warnings)
13
16
 
@@ -1,19 +1,19 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@6.8.0 test
2
+ > @orchestrator-ui/orchestrator-ui-components@7.0.1 test
3
3
  > jest
4
4
 
5
- PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
6
5
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
7
6
  PASS Wfo-UI Tests src/utils/date.spec.ts
8
7
  PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
8
+ PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
9
9
  PASS Wfo-UI Tests src/utils/string.spec.ts
10
10
  PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
11
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
12
11
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
12
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.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
- PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
16
15
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
16
+ PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
17
17
  PASS Wfo-UI Tests src/rtk/utils.spec.ts
18
18
  PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
19
19
  PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
@@ -21,9 +21,6 @@ PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllo
21
21
  PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
22
22
  PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
23
23
  PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
24
- PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.805 s)
25
- PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts (7.039 s)
26
- PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.spec.ts
27
24
  PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
28
25
  PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
29
26
  PASS Wfo-UI Tests src/utils/filterData.spec.ts
@@ -38,9 +35,11 @@ PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
38
35
  PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
39
36
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
40
37
  PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
38
+ PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.spec.ts
39
+ PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.276 s)
41
40
 
42
- Test Suites: 36 passed, 36 total
43
- Tests: 239 passed, 239 total
41
+ Test Suites: 35 passed, 35 total
42
+ Tests: 226 passed, 226 total
44
43
  Snapshots: 0 total
45
- Time: 9.486 s
44
+ Time: 7.847 s
46
45
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 7.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4cdef68: 2361 Make it possible as prepend field to be cleared
8
+ - fe2e8d0: 2355 Enable Ctrl/Cmd + Arrows to control form pages
9
+ - bc36592: Add option to overwrite the retriever type in the FE
10
+ - 8e1cbd0: Change the processes search results to use the whole div
11
+
12
+ ## 7.0.0
13
+
14
+ ### Major Changes
15
+
16
+ - 87f9e22: Removes uniforms in favor of PydanticForms form handling library
17
+
18
+ ### Patch Changes
19
+
20
+ - ba5bafc: Update to latest pydantic-forms version
21
+
3
22
  ## 6.8.0
4
23
 
5
24
  ### Minor Changes