@orchestrator-ui/orchestrator-ui-components 5.9.0 → 6.0.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.
Files changed (57) hide show
  1. package/.turbo/turbo-build.log +8 -8
  2. package/.turbo/turbo-lint.log +10 -1
  3. package/.turbo/turbo-test.log +8 -8
  4. package/CHANGELOG.md +6 -0
  5. package/__mocks__/@copilotkit/react-core.js +9 -0
  6. package/__mocks__/@copilotkit/react-ui.js +11 -0
  7. package/dist/index.d.ts +1429 -2
  8. package/dist/index.js +2977 -19
  9. package/dist/index.js.map +1 -1
  10. package/package.json +5 -1
  11. package/src/components/WfoAgent/FilterDisplay/FilterDisplay.tsx +182 -0
  12. package/src/components/WfoAgent/FilterDisplay/index.ts +1 -0
  13. package/src/components/WfoAgent/FilterDisplay/styles.ts +62 -0
  14. package/src/components/WfoAgent/WfoAgent/WfoAgent.tsx +100 -0
  15. package/src/components/WfoAgent/WfoAgent/index.ts +1 -0
  16. package/src/components/WfoAgent/index.ts +2 -0
  17. package/src/components/WfoSearchPage/WfoConditionRow/WfoConditionRow.tsx +388 -0
  18. package/src/components/WfoSearchPage/WfoConditionRow/WfoFieldSelector.tsx +43 -0
  19. package/src/components/WfoSearchPage/WfoConditionRow/WfoOperatorSelector.tsx +100 -0
  20. package/src/components/WfoSearchPage/WfoConditionRow/WfoPathChips.tsx +193 -0
  21. package/src/components/WfoSearchPage/WfoConditionRow/WfoPathSelector.tsx +54 -0
  22. package/src/components/WfoSearchPage/WfoConditionRow/WfoRenderFunctions.tsx +107 -0
  23. package/src/components/WfoSearchPage/WfoConditionRow/WfoSelectedPathDisplay.tsx +75 -0
  24. package/src/components/WfoSearchPage/WfoConditionRow/index.ts +11 -0
  25. package/src/components/WfoSearchPage/WfoConditionRow/types.ts +84 -0
  26. package/src/components/WfoSearchPage/WfoConditionRow/utils.ts +63 -0
  27. package/src/components/WfoSearchPage/WfoFilterGroup/WfoFilterGroup.tsx +238 -0
  28. package/src/components/WfoSearchPage/WfoFilterGroup/index.ts +1 -0
  29. package/src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx +453 -0
  30. package/src/components/WfoSearchPage/WfoSearch/index.ts +1 -0
  31. package/src/components/WfoSearchPage/WfoSearchResults/WfoHighlightedText.tsx +63 -0
  32. package/src/components/WfoSearchPage/WfoSearchResults/WfoPathBreadcrumb.tsx +80 -0
  33. package/src/components/WfoSearchPage/WfoSearchResults/WfoSearchEmptyState.tsx +24 -0
  34. package/src/components/WfoSearchPage/WfoSearchResults/WfoSearchLoadingState.tsx +24 -0
  35. package/src/components/WfoSearchPage/WfoSearchResults/WfoSearchMetadataHeader.tsx +24 -0
  36. package/src/components/WfoSearchPage/WfoSearchResults/WfoSearchPaginationInfo.tsx +107 -0
  37. package/src/components/WfoSearchPage/WfoSearchResults/WfoSearchResultItem.tsx +157 -0
  38. package/src/components/WfoSearchPage/WfoSearchResults/WfoSearchResults.tsx +65 -0
  39. package/src/components/WfoSearchPage/WfoSearchResults/WfoSubscriptionDetailModal.tsx +55 -0
  40. package/src/components/WfoSearchPage/WfoSearchResults/index.ts +10 -0
  41. package/src/components/WfoSearchPage/WfoValueControl/WfoValueControl.tsx +247 -0
  42. package/src/components/WfoSearchPage/WfoValueControl/index.ts +1 -0
  43. package/src/components/WfoSearchPage/constants.ts +17 -0
  44. package/src/components/WfoSearchPage/index.ts +6 -0
  45. package/src/components/WfoSearchPage/utils.ts +271 -0
  46. package/src/components/index.ts +2 -0
  47. package/src/configuration/version.ts +1 -1
  48. package/src/hooks/useDebounce.ts +21 -0
  49. package/src/hooks/usePathAutoComplete.ts +133 -0
  50. package/src/hooks/useSearch.ts +83 -0
  51. package/src/hooks/useSearchPagination.ts +148 -0
  52. package/src/hooks/useUrlParams.ts +120 -0
  53. package/src/messages/en-GB.json +77 -0
  54. package/src/rtk/endpoints/index.ts +1 -0
  55. package/src/rtk/endpoints/search.ts +90 -0
  56. package/src/types/index.ts +1 -0
  57. package/src/types/search.ts +215 -0
@@ -1,12 +1,12 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@5.9.0 build
2
+ > @orchestrator-ui/orchestrator-ui-components@6.0.0 build
3
3
  > npm run generate-version && tsup src/index.ts
4
4
 
5
5
 
6
- > @orchestrator-ui/orchestrator-ui-components@5.9.0 generate-version
6
+ > @orchestrator-ui/orchestrator-ui-components@6.0.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 42ms
9
+ src/configuration/version.ts 38ms
10
10
  CLI Building entry: src/index.ts
11
11
  CLI Using tsconfig: tsconfig.build.json
12
12
  CLI tsup v8.5.0
@@ -14,8 +14,8 @@ src/configuration/version.ts 42ms
14
14
  CLI Target: es2020
15
15
  ESM Build start
16
16
  DTS Build start
17
- ESM dist/index.js 2.05 MB
18
- ESM dist/index.js.map 3.91 MB
19
- ESM ⚡️ Build success in 735ms
20
- DTS ⚡️ Build success in 19227ms
21
- DTS dist/index.d.ts 840.32 KB
17
+ ESM dist/index.js 2.15 MB
18
+ ESM dist/index.js.map 4.11 MB
19
+ ESM ⚡️ Build success in 690ms
20
+ DTS ⚡️ Build success in 20264ms
21
+ DTS dist/index.d.ts 895.48 KB
@@ -1,4 +1,13 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@5.9.0 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@6.0.0 lint
3
3
  > eslint
4
4
 
5
+
6
+ /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
7
+ 195:8 warning React Hook useEffect has missing dependencies: 'setSelectedRecordId' and 'setSelectedRecordIndex'. Either include them or remove the dependency array react-hooks/exhaustive-deps
8
+
9
+ /home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/hooks/usePathAutoComplete.ts
10
+ 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
+
12
+ ✖ 2 problems (0 errors, 2 warnings)
13
+
@@ -1,16 +1,16 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@5.9.0 test
2
+ > @orchestrator-ui/orchestrator-ui-components@6.0.0 test
3
3
  > jest
4
4
 
5
5
  PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
6
6
  PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
7
- PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
8
7
  PASS Wfo-UI Tests src/utils/date.spec.ts
9
- PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
8
+ PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
10
9
  PASS Wfo-UI Tests src/utils/string.spec.ts
11
- PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
12
10
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
11
+ PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
13
12
  PASS Wfo-UI Tests src/utils/compareVersions.spec.ts
13
+ PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
14
14
  PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
15
15
  PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
16
16
  PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
@@ -21,10 +21,10 @@ 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/WfoForms/formFields/utils.spec.ts (6.025 s)
24
25
  PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts
25
- PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts (5.892 s)
26
- PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
27
26
  PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
27
+ PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
28
28
  PASS Wfo-UI Tests src/utils/filterData.spec.ts
29
29
  PASS Wfo-UI Tests src/utils/toObjectWithSerializedValues.spec.ts
30
30
  PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
@@ -36,11 +36,11 @@ PASS Wfo-UI Tests src/utils/getTypedFieldFromObject.spec.ts
36
36
  PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
37
37
  PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
38
38
  PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
39
- PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
40
39
  PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.spec.ts
40
+ PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
41
41
 
42
42
  Test Suites: 36 passed, 36 total
43
43
  Tests: 233 passed, 233 total
44
44
  Snapshots: 0 total
45
- Time: 9.729 s
45
+ Time: 9.451 s
46
46
  Ran all test suites.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @orchestrator-ui/orchestrator-ui-components
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 7408909: UI Components for the new search and agent page, integrating with the search/agent endpoints in the core package.
8
+
3
9
  ## 5.9.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,9 @@
1
+ /* global module, jest */
2
+ module.exports = {
3
+ useCoAgent: jest.fn(() => ({
4
+ isLoading: false,
5
+ error: null,
6
+ run: jest.fn(),
7
+ result: null,
8
+ })),
9
+ };
@@ -0,0 +1,11 @@
1
+ /* global module, require */
2
+ const React = require('react');
3
+
4
+ module.exports = {
5
+ CopilotSidebar: ({ children }) =>
6
+ React.createElement(
7
+ 'div',
8
+ { 'data-testid': 'copilot-sidebar' },
9
+ children,
10
+ ),
11
+ };