@orchestrator-ui/orchestrator-ui-components 7.3.0 → 7.4.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.
- package/.turbo/turbo-build.log +6 -6
- package/.turbo/turbo-lint.log +2 -2
- package/.turbo/turbo-test.log +8 -8
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +5 -11
- package/dist/index.js +18 -40
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx +6 -20
- package/src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx +2 -9
- package/src/components/WfoStartButton/WfoStartButtonComboBox.tsx +6 -3
- package/src/components/WfoStartButton/WfoStartWorkflowComboBox.tsx +1 -8
- package/src/configuration/version.ts +1 -1
- package/src/contexts/OrchestratorConfigContext.tsx +1 -0
- package/src/types/types.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@7.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@7.4.0 build
|
|
3
3
|
> npm run generate-version && tsup src/index.ts
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @orchestrator-ui/orchestrator-ui-components@7.
|
|
6
|
+
> @orchestrator-ui/orchestrator-ui-components@7.4.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
|
|
9
|
+
src/configuration/version.ts 131ms
|
|
10
10
|
[34mCLI[39m Building entry: src/index.ts
|
|
11
11
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
12
12
|
[34mCLI[39m tsup v8.5.0
|
|
@@ -14,9 +14,9 @@ src/configuration/version.ts 120ms
|
|
|
14
14
|
[34mCLI[39m Target: es2022
|
|
15
15
|
[34mCLI[39m Cleaning output folder
|
|
16
16
|
[34mESM[39m Build start
|
|
17
|
-
[32mESM[39m [1mdist/index.js [22m[32m846.
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m846.00 KB[39m
|
|
18
18
|
[32mESM[39m [1mdist/index.js.map [22m[32m1.59 MB[39m
|
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 291ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 20410ms
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.47 MB[39m
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@7.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@7.4.0 lint
|
|
3
3
|
> eslint
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx
|
|
7
|
-
|
|
7
|
+
53:8 warning React Hook useEffect has a missing dependency: 'handleColorModeSwitch'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
8
8
|
|
|
9
9
|
/home/runner/work/orchestrator-ui-library/orchestrator-ui-library/packages/orchestrator-ui-components/src/components/WfoSearchPage/WfoSearch/WfoSearch.tsx
|
|
10
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
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@7.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@7.4.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/utils/date.spec.ts
|
|
7
7
|
PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
|
|
8
|
+
PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
|
|
8
9
|
PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
|
|
9
10
|
PASS Wfo-UI Tests src/utils/string.spec.ts
|
|
10
|
-
PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
|
|
11
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
12
|
PASS Wfo-UI Tests src/utils/compareVersions.spec.ts
|
|
13
|
+
PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.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
|
|
17
|
-
PASS Wfo-UI Tests src/rtk/utils.spec.ts
|
|
18
17
|
PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
|
|
19
|
-
PASS Wfo-UI Tests src/utils
|
|
18
|
+
PASS Wfo-UI Tests src/rtk/utils.spec.ts
|
|
20
19
|
PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
|
|
21
|
-
PASS Wfo-UI Tests src/utils/
|
|
20
|
+
PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
|
|
22
21
|
PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
|
|
22
|
+
PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
|
|
23
23
|
PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
|
|
24
24
|
PASS Wfo-UI Tests src/utils/toSortedObjectKeys.spec.ts
|
|
25
25
|
PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
|
|
@@ -35,11 +35,11 @@ PASS Wfo-UI Tests src/utils/cacheTag.spec.ts
|
|
|
35
35
|
PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
|
|
36
36
|
PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
|
|
37
37
|
PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
|
|
38
|
-
PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts
|
|
39
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.135 s)
|
|
40
40
|
|
|
41
41
|
Test Suites: 35 passed, 35 total
|
|
42
42
|
Tests: 226 passed, 226 total
|
|
43
43
|
Snapshots: 0 total
|
|
44
|
-
Time: 7.
|
|
44
|
+
Time: 7.61 s
|
|
45
45
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @orchestrator-ui/orchestrator-ui-components
|
|
2
2
|
|
|
3
|
+
## 7.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 70c36b5: Add start workflow filters to the library and refactor to read from OrchestratorConfigContext instead of prop drilling
|
|
8
|
+
|
|
9
|
+
## 7.3.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a092d98: Changes how colorMode state is passed up
|
|
14
|
+
|
|
3
15
|
## 7.3.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -23700,6 +23700,7 @@ type OrchestratorConfig = {
|
|
|
23700
23700
|
supportMenuItemUrl: string;
|
|
23701
23701
|
enableAoStackStatus: boolean;
|
|
23702
23702
|
aoStackStatusUrl: string;
|
|
23703
|
+
startWorkflowFilters: string[] | undefined;
|
|
23703
23704
|
};
|
|
23704
23705
|
declare enum ColorModes {
|
|
23705
23706
|
LIGHT = "LIGHT",
|
|
@@ -24104,12 +24105,9 @@ declare const ContentContextProvider: FC<ContentContextProviderProps>;
|
|
|
24104
24105
|
interface WfoPageTemplateProps {
|
|
24105
24106
|
getAppLogo: (navigationHeight: number) => ReactElement;
|
|
24106
24107
|
overrideMenuItems?: (defaultMenuItems: EuiSideNavItemType<object>[]) => EuiSideNavItemType<object>[];
|
|
24107
|
-
overrideStartWorkflowFilters?: (ProductLifecycleStatus | string)[];
|
|
24108
24108
|
children: ReactNode;
|
|
24109
|
-
|
|
24110
|
-
|
|
24111
|
-
React__default.Dispatch<React__default.SetStateAction<EuiThemeColorMode>>
|
|
24112
|
-
];
|
|
24109
|
+
colorMode: EuiThemeColorMode;
|
|
24110
|
+
setColorMode: React__default.Dispatch<React__default.SetStateAction<EuiThemeColorMode>>;
|
|
24113
24111
|
}
|
|
24114
24112
|
declare const WfoPageTemplate: FC<WfoPageTemplateProps>;
|
|
24115
24113
|
|
|
@@ -24141,7 +24139,6 @@ declare const urlPolicyMap: Map<string, PolicyResource>;
|
|
|
24141
24139
|
declare const createSideNavDivider: () => EuiSideNavItemType$1<object>;
|
|
24142
24140
|
type WfoSidebarProps = {
|
|
24143
24141
|
overrideMenuItems?: (defaultMenuItems: EuiSideNavItemType$1<object>[]) => EuiSideNavItemType$1<object>[];
|
|
24144
|
-
overrideStartWorkflowFilters?: (ProductLifecycleStatus | string)[];
|
|
24145
24142
|
};
|
|
24146
24143
|
declare const WfoSidebar: FC<WfoSidebarProps>;
|
|
24147
24144
|
|
|
@@ -24599,10 +24596,7 @@ declare const WfoRenderElementOrString: FC<WfoRenderElementOrStringProps>;
|
|
|
24599
24596
|
|
|
24600
24597
|
declare const WfoStartTaskButtonComboBox: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
24601
24598
|
|
|
24602
|
-
|
|
24603
|
-
startWorkflowFilters?: (ProductLifecycleStatus | string)[];
|
|
24604
|
-
}
|
|
24605
|
-
declare const WfoStartWorkflowButtonComboBox: ({ startWorkflowFilters, }: WfoStartWorkflowButtonComboBoxProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
24599
|
+
declare const WfoStartWorkflowButtonComboBox: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
24606
24600
|
|
|
24607
24601
|
declare const getNumberOfColumns: (currentBreakpoint: string | undefined) => 2 | 1 | 3;
|
|
24608
24602
|
|
|
@@ -27116,7 +27110,7 @@ declare const METADATA_RESOURCE_TYPE_ENDPOINT = "resource_types";
|
|
|
27116
27110
|
declare const METADATA_WORKFLOWS_ENDPOINT = "workflows";
|
|
27117
27111
|
declare const METADATA_SCHEDULES_ENDPOINT = "schedules";
|
|
27118
27112
|
|
|
27119
|
-
declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "7.
|
|
27113
|
+
declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "7.4.0";
|
|
27120
27114
|
|
|
27121
27115
|
declare const useGetTranslationMessages: (locale: string | undefined) => {
|
|
27122
27116
|
pydanticForms: {
|
package/dist/index.js
CHANGED
|
@@ -66,7 +66,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
66
66
|
})(PolicyResource || {});
|
|
67
67
|
|
|
68
68
|
// src/configuration/version.ts
|
|
69
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.
|
|
69
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "7.4.0";
|
|
70
70
|
|
|
71
71
|
// src/types/types.ts
|
|
72
72
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus2) => {
|
|
@@ -81,12 +81,12 @@ var WorkerTypes = /* @__PURE__ */ ((WorkerTypes3) => {
|
|
|
81
81
|
WorkerTypes3["THREAD"] = "THREAD";
|
|
82
82
|
return WorkerTypes3;
|
|
83
83
|
})(WorkerTypes || {});
|
|
84
|
-
var ProductLifecycleStatus = /* @__PURE__ */ ((
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return
|
|
84
|
+
var ProductLifecycleStatus = /* @__PURE__ */ ((ProductLifecycleStatus2) => {
|
|
85
|
+
ProductLifecycleStatus2["ACTIVE"] = "active";
|
|
86
|
+
ProductLifecycleStatus2["PRE_PRODUCTION"] = "pre production";
|
|
87
|
+
ProductLifecycleStatus2["PHASE_OUT"] = "phase out";
|
|
88
|
+
ProductLifecycleStatus2["END_OF_LIFE"] = "end of life";
|
|
89
|
+
return ProductLifecycleStatus2;
|
|
90
90
|
})(ProductLifecycleStatus || {});
|
|
91
91
|
var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
|
|
92
92
|
BadgeType2["WORKFLOW"] = "workflow";
|
|
@@ -830,7 +830,8 @@ var emptyOrchestratorConfig = {
|
|
|
830
830
|
enableSupportMenuItem: false,
|
|
831
831
|
supportMenuItemUrl: "",
|
|
832
832
|
enableAoStackStatus: false,
|
|
833
|
-
aoStackStatusUrl: ""
|
|
833
|
+
aoStackStatusUrl: "",
|
|
834
|
+
startWorkflowFilters: void 0
|
|
834
835
|
};
|
|
835
836
|
var OrchestratorConfigContext = createContext2(
|
|
836
837
|
emptyOrchestratorConfig
|
|
@@ -5609,7 +5610,7 @@ var wfoThemeModifications = {
|
|
|
5609
5610
|
// src/components/WfoPageTemplate/WfoPageTemplate/WfoPageTemplate.tsx
|
|
5610
5611
|
import { Fragment as Fragment2, jsx as jsx67, jsxs as jsxs40 } from "@emotion/react/jsx-runtime";
|
|
5611
5612
|
var WfoPageTemplate = (props) => {
|
|
5612
|
-
const
|
|
5613
|
+
const { colorMode, setColorMode } = props;
|
|
5613
5614
|
const handleColorModeSwitch = (newColorMode) => {
|
|
5614
5615
|
setColorMode(newColorMode);
|
|
5615
5616
|
localStorage.setItem("colorMode", newColorMode);
|
|
@@ -5630,13 +5631,7 @@ var WfoPageTemplate = (props) => {
|
|
|
5630
5631
|
}
|
|
5631
5632
|
) });
|
|
5632
5633
|
};
|
|
5633
|
-
var WfoPageTemplateContent = ({
|
|
5634
|
-
children,
|
|
5635
|
-
getAppLogo,
|
|
5636
|
-
overrideMenuItems,
|
|
5637
|
-
overrideStartWorkflowFilters,
|
|
5638
|
-
handleColorModeSwitch
|
|
5639
|
-
}) => {
|
|
5634
|
+
var WfoPageTemplateContent = ({ children, getAppLogo, overrideMenuItems, handleColorModeSwitch }) => {
|
|
5640
5635
|
const { getSidebarStyle, NAVIGATION_HEIGHT } = useWithOrchestratorTheme(
|
|
5641
5636
|
getPageTemplateStyles
|
|
5642
5637
|
);
|
|
@@ -5663,13 +5658,7 @@ var WfoPageTemplateContent = ({
|
|
|
5663
5658
|
EuiPageTemplate.Sidebar,
|
|
5664
5659
|
{
|
|
5665
5660
|
css: getSidebarStyle(NAVIGATION_HEIGHT),
|
|
5666
|
-
children: /* @__PURE__ */ jsx67(
|
|
5667
|
-
WfoSidebar,
|
|
5668
|
-
{
|
|
5669
|
-
overrideMenuItems,
|
|
5670
|
-
overrideStartWorkflowFilters
|
|
5671
|
-
}
|
|
5672
|
-
)
|
|
5661
|
+
children: /* @__PURE__ */ jsx67(WfoSidebar, { overrideMenuItems })
|
|
5673
5662
|
}
|
|
5674
5663
|
),
|
|
5675
5664
|
/* @__PURE__ */ jsx67(
|
|
@@ -5863,9 +5852,9 @@ var WfoStartButtonComboBox = ({
|
|
|
5863
5852
|
isProcess,
|
|
5864
5853
|
className,
|
|
5865
5854
|
selectedProductStatus,
|
|
5866
|
-
setSelectedProductStatus
|
|
5867
|
-
startWorkflowFilters
|
|
5855
|
+
setSelectedProductStatus
|
|
5868
5856
|
}) => {
|
|
5857
|
+
const { startWorkflowFilters } = useGetOrchestratorConfig();
|
|
5869
5858
|
const [isPopoverOpen, setPopoverOpen] = useState6(false);
|
|
5870
5859
|
const { theme } = useOrchestratorTheme();
|
|
5871
5860
|
const { selectableStyle } = useWithOrchestratorTheme(getStyles);
|
|
@@ -5957,9 +5946,7 @@ var WfoStartButtonComboBox = ({
|
|
|
5957
5946
|
|
|
5958
5947
|
// src/components/WfoStartButton/WfoStartWorkflowComboBox.tsx
|
|
5959
5948
|
import { jsx as jsx69 } from "@emotion/react/jsx-runtime";
|
|
5960
|
-
var WfoStartWorkflowButtonComboBox = ({
|
|
5961
|
-
startWorkflowFilters
|
|
5962
|
-
}) => {
|
|
5949
|
+
var WfoStartWorkflowButtonComboBox = () => {
|
|
5963
5950
|
const router = useRouter();
|
|
5964
5951
|
const t = useTranslations6("common");
|
|
5965
5952
|
const { isEngineRunningNow } = useCheckEngineStatus();
|
|
@@ -5994,8 +5981,7 @@ var WfoStartWorkflowButtonComboBox = ({
|
|
|
5994
5981
|
isProcess: true,
|
|
5995
5982
|
css: { width: "300px" },
|
|
5996
5983
|
selectedProductStatus,
|
|
5997
|
-
setSelectedProductStatus
|
|
5998
|
-
startWorkflowFilters
|
|
5984
|
+
setSelectedProductStatus
|
|
5999
5985
|
}
|
|
6000
5986
|
);
|
|
6001
5987
|
};
|
|
@@ -6043,10 +6029,7 @@ var createSideNavDivider = () => ({
|
|
|
6043
6029
|
id: htmlIdGenerator("menuDivider")(),
|
|
6044
6030
|
renderItem: () => /* @__PURE__ */ jsx71(EuiHorizontalRule, { margin: "xs" })
|
|
6045
6031
|
});
|
|
6046
|
-
var WfoSidebar = ({
|
|
6047
|
-
overrideMenuItems,
|
|
6048
|
-
overrideStartWorkflowFilters
|
|
6049
|
-
}) => {
|
|
6032
|
+
var WfoSidebar = ({ overrideMenuItems }) => {
|
|
6050
6033
|
const { menuStyle } = useWithOrchestratorTheme(getMenuStyles);
|
|
6051
6034
|
const t = useTranslations7("main");
|
|
6052
6035
|
const router = useRouter2();
|
|
@@ -6242,12 +6225,7 @@ var WfoSidebar = ({
|
|
|
6242
6225
|
WfoIsAllowedToRender,
|
|
6243
6226
|
{
|
|
6244
6227
|
resource: "/orchestrator/processes/create/process/menu" /* SUBSCRIPTION_CREATE */,
|
|
6245
|
-
children: /* @__PURE__ */ jsx71(
|
|
6246
|
-
WfoStartWorkflowButtonComboBox,
|
|
6247
|
-
{
|
|
6248
|
-
startWorkflowFilters: overrideStartWorkflowFilters
|
|
6249
|
-
}
|
|
6250
|
-
)
|
|
6228
|
+
children: /* @__PURE__ */ jsx71(WfoStartWorkflowButtonComboBox, {})
|
|
6251
6229
|
}
|
|
6252
6230
|
),
|
|
6253
6231
|
/* @__PURE__ */ jsx71(EuiSpacer3, { size: "xl" }),
|