@orchestrator-ui/orchestrator-ui-components 1.24.0 → 1.26.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 +4 -4
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +7 -7
- package/CHANGELOG.md +24 -0
- package/dist/index.d.ts +16 -13
- package/dist/index.js +1600 -1520
- package/package.json +1 -1
- package/src/components/WfoBadges/WfoWebsocketStatusBadge/WfoWebsocketStatusBadge.tsx +1 -1
- package/src/components/WfoForms/formFields/utils.spec.ts +24 -6
- package/src/components/WfoKeyValueTable/styles.ts +0 -1
- package/src/components/WfoSettingsModal/WfoSettingsModal.tsx +28 -22
- package/src/components/WfoSubscription/WfoInUseByRelations.tsx +1 -1
- package/src/components/WfoSubscription/WfoRelatedSubscriptions.tsx +2 -1
- package/src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx +4 -24
- package/src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoProductBlockKeyValueRow.tsx +2 -3
- package/src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx +93 -36
- package/src/components/WfoSubscription/WfoSubscriptionProductBlock/styles.ts +16 -10
- package/src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx +5 -2
- package/src/components/WfoTable/WfoTableWithFilter/WfoTableWithFilter.tsx +4 -4
- package/src/components/WfoTree/treeUtils.spec.ts +20 -4
- package/src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx +20 -6
- package/src/messages/en-GB.json +5 -1
- package/src/messages/nl-NL.json +5 -1
- package/src/pages/processes/WfoProcessDetailPage.tsx +23 -70
- package/src/pages/processes/WfoStartProcessPage.tsx +30 -3
- package/src/rtk/api.ts +2 -2
- package/src/rtk/endpoints/processDetail.ts +15 -4
- package/src/rtk/endpoints/processList.ts +1 -1
- package/src/rtk/endpoints/streamMessages.ts +25 -10
- package/src/rtk/endpoints/subscriptionDetail.ts +4 -1
- package/src/types/types.ts +1 -1
- package/src/utils/date.ts +3 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@1.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@1.26.0 build
|
|
3
3
|
> tsup src/index.ts --format esm --dts --tsconfig tsconfig.build.json
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.js [22m[32m2.15 MB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m173.
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 803ms
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 13528ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m173.37 KB[39m
|
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@1.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@1.26.0 test
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
|
+
PASS Orchestrator UI Components Tests src/utils/date.spec.ts
|
|
5
6
|
PASS Orchestrator UI Components Tests src/components/WfoForms/formFields/utils.spec.ts
|
|
6
7
|
PASS Orchestrator UI Components Tests src/components/WfoSubscription/utils/utils.spec.ts
|
|
7
|
-
PASS Orchestrator UI Components Tests src/
|
|
8
|
+
PASS Orchestrator UI Components Tests src/components/WfoTree/treeUtils.spec.ts
|
|
8
9
|
PASS Orchestrator UI Components Tests src/utils/getProductNamesFromProcess.spec.ts
|
|
9
10
|
PASS Orchestrator UI Components Tests src/pages/processes/timelineUtils.spec.ts
|
|
10
11
|
PASS Orchestrator UI Components Tests src/utils/string.spec.ts
|
|
11
12
|
PASS Orchestrator UI Components Tests src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts
|
|
12
|
-
PASS Orchestrator UI Components Tests src/components/WfoTree/treeUtils.spec.ts
|
|
13
13
|
PASS Orchestrator UI Components Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
|
|
14
|
-
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableUtils.spec.ts
|
|
15
14
|
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
|
|
16
15
|
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
|
|
16
|
+
PASS Orchestrator UI Components Tests src/components/WfoTable/utils/tableUtils.spec.ts
|
|
17
17
|
PASS Orchestrator UI Components Tests src/utils/resultFlattener.spec.ts
|
|
18
18
|
PASS Orchestrator UI Components Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
|
|
19
19
|
PASS Orchestrator UI Components Tests src/messages/getTranslationMessages.spec.ts
|
|
@@ -25,15 +25,15 @@ PASS Orchestrator UI Components Tests src/utils/filterData.spec.ts
|
|
|
25
25
|
PASS Orchestrator UI Components Tests src/utils/sortObjectKeys.spec.ts
|
|
26
26
|
PASS Orchestrator UI Components Tests src/utils/getTokenName.spec.ts
|
|
27
27
|
PASS Orchestrator UI Components Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
|
|
28
|
+
PASS Orchestrator UI Components Tests src/utils/onlyUnique.spec.ts
|
|
28
29
|
PASS Orchestrator UI Components Tests src/utils/environmentVariables.spec.ts
|
|
29
30
|
PASS Orchestrator UI Components Tests src/utils/uuid.spec.ts
|
|
30
|
-
PASS Orchestrator UI Components Tests src/utils/onlyUnique.spec.ts
|
|
31
31
|
PASS Orchestrator UI Components Tests src/utils/getTypedFieldFromObject.spec.ts
|
|
32
|
-
PASS Orchestrator UI Components Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
|
|
33
32
|
PASS Orchestrator UI Components Tests src/utils/getQueryVariablesForExport.spec.ts
|
|
33
|
+
PASS Orchestrator UI Components Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
|
|
34
34
|
|
|
35
35
|
Test Suites: 29 passed, 29 total
|
|
36
36
|
Tests: 167 passed, 167 total
|
|
37
37
|
Snapshots: 0 total
|
|
38
|
-
Time: 4.
|
|
38
|
+
Time: 4.002 s
|
|
39
39
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @orchestrator-ui/orchestrator-ui-components
|
|
2
2
|
|
|
3
|
+
## 1.26.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3508ff8: Sort product block instance values by field name
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 257ef6e: Added number type to parseDate function
|
|
12
|
+
|
|
13
|
+
## 1.25.0
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 10e542e: Adds websockets responsiveness to process list and processDetails
|
|
18
|
+
- f225422: Resolves external subscription id and name in product block details
|
|
19
|
+
- 47a545b: Adds subscription info to modify workflow start page
|
|
20
|
+
- cd59329: Hides empty productBlock values in subscription detail
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 43bcc3c: Fixes table settings reset
|
|
25
|
+
- 02d39db: Fix pressing back not returning to the form page for submitted forms
|
|
26
|
+
|
|
3
27
|
## 1.24.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ declare enum BaseQueryTypes {
|
|
|
44
44
|
declare enum CacheTags {
|
|
45
45
|
engineStatus = "engineStatus",
|
|
46
46
|
cacheNames = "cacheNames",
|
|
47
|
-
|
|
47
|
+
processes = "processes",
|
|
48
48
|
processListSummary = "processListSummary",
|
|
49
49
|
subscription = "subscription",
|
|
50
50
|
subscriptionList = "subscriptionList",
|
|
@@ -829,7 +829,7 @@ declare const useStreamMessagesQuery: _reduxjs_toolkit_dist_query_react_buildHoo
|
|
|
829
829
|
stack: string | undefined;
|
|
830
830
|
}, {}>>, CacheTags, boolean, "orchestratorApi">>;
|
|
831
831
|
|
|
832
|
-
declare const subscriptionDetailQuery = "\n query SubscriptionDetail($subscriptionId: String!) {\n subscriptions(\n filterBy: { field: \"subscriptionId\", value: $subscriptionId }\n ) {\n page {\n subscriptionId\n description\n fixedInputs\n insync\n note\n product {\n createdAt\n name\n status\n endDate\n description\n tag\n productType\n productId\n }\n endDate\n startDate\n status\n customerId\n metadata\n customer {\n fullname\n customerId\n shortcode\n }\n customerDescriptions {\n subscriptionId\n description\n customerId\n }\n productBlockInstances {\n id\n
|
|
832
|
+
declare const subscriptionDetailQuery = "\n query SubscriptionDetail($subscriptionId: String!) {\n subscriptions(\n filterBy: { field: \"subscriptionId\", value: $subscriptionId }\n ) {\n page {\n subscriptionId\n description\n fixedInputs\n insync\n note\n product {\n createdAt\n name\n status\n endDate\n description\n tag\n productType\n productId\n }\n endDate\n startDate\n status\n customerId\n metadata\n customer {\n fullname\n customerId\n shortcode\n }\n customerDescriptions {\n subscriptionId\n description\n customerId\n }\n productBlockInstances {\n id\n subscription {\n subscriptionId\n description\n }\n parent\n productBlockInstanceValues\n subscriptionInstanceId\n inUseByRelations\n }\n processes(sortBy: { field: \"startedAt\", order: ASC }) {\n page {\n processId\n lastStatus\n startedAt\n createdBy\n workflowTarget\n workflowName\n isTask\n }\n }\n }\n }\n }\n";
|
|
833
833
|
declare type SubscriptionDetailResponse = {
|
|
834
834
|
subscription: SubscriptionDetail;
|
|
835
835
|
} & BaseGraphQlResult;
|
|
@@ -1513,11 +1513,11 @@ declare type InUseByRelation = {
|
|
|
1513
1513
|
};
|
|
1514
1514
|
declare type ProductBlockInstance = {
|
|
1515
1515
|
id: number;
|
|
1516
|
-
ownerSubscriptionId: string;
|
|
1517
1516
|
subscriptionInstanceId: string;
|
|
1518
1517
|
parent: Nullable<number>;
|
|
1519
1518
|
productBlockInstanceValues: FieldValue[];
|
|
1520
1519
|
inUseByRelations: InUseByRelation[];
|
|
1520
|
+
subscription: Pick<Subscription, 'subscriptionId' | 'description'>;
|
|
1521
1521
|
};
|
|
1522
1522
|
interface ResourceTypeDefinition {
|
|
1523
1523
|
description: string;
|
|
@@ -2175,15 +2175,11 @@ declare type WfoSubscriptionActionsProps = {
|
|
|
2175
2175
|
declare const WfoSubscriptionActions: FC<WfoSubscriptionActionsProps>;
|
|
2176
2176
|
|
|
2177
2177
|
interface WfoSubscriptionProductBlockProps {
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
productBlockInstanceValues: FieldValue[];
|
|
2181
|
-
inUseByRelations: InUseByRelation[];
|
|
2182
|
-
id: number;
|
|
2183
|
-
isOutsideCurrentSubscription?: boolean;
|
|
2178
|
+
productBlock: ProductBlockInstance;
|
|
2179
|
+
subscriptionId: Subscription['subscriptionId'];
|
|
2184
2180
|
}
|
|
2185
2181
|
declare const HIDDEN_KEYS: string[];
|
|
2186
|
-
declare const WfoSubscriptionProductBlock: ({
|
|
2182
|
+
declare const WfoSubscriptionProductBlock: ({ productBlock, subscriptionId, }: WfoSubscriptionProductBlockProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2187
2183
|
|
|
2188
2184
|
declare type WfoProductBlockKeyValueRowProps = {
|
|
2189
2185
|
fieldValue: FieldValue;
|
|
@@ -3115,6 +3111,10 @@ declare const useGetTranslationMessages: (locale: string | undefined) => {
|
|
|
3115
3111
|
lightMode: string;
|
|
3116
3112
|
websocketConnected: string;
|
|
3117
3113
|
websocketDisconnected: string;
|
|
3114
|
+
resetToDefault: string;
|
|
3115
|
+
savePreferences: string;
|
|
3116
|
+
numberOfRows: string;
|
|
3117
|
+
tableSettings: string;
|
|
3118
3118
|
};
|
|
3119
3119
|
common: {
|
|
3120
3120
|
product: string;
|
|
@@ -3591,6 +3591,10 @@ declare const useGetTranslationMessages: (locale: string | undefined) => {
|
|
|
3591
3591
|
lightMode: string;
|
|
3592
3592
|
websocketConnected: string;
|
|
3593
3593
|
websocketDisconnected: string;
|
|
3594
|
+
resetToDefault: string;
|
|
3595
|
+
savePreferences: string;
|
|
3596
|
+
numberOfRows: string;
|
|
3597
|
+
tableSettings: string;
|
|
3594
3598
|
};
|
|
3595
3599
|
common: {
|
|
3596
3600
|
product: string;
|
|
@@ -3974,9 +3978,8 @@ declare type GroupedStep = {
|
|
|
3974
3978
|
};
|
|
3975
3979
|
interface WfoProcessDetailPageProps {
|
|
3976
3980
|
processId: string;
|
|
3977
|
-
processDetailRefetchInterval?: number;
|
|
3978
3981
|
}
|
|
3979
|
-
declare const WfoProcessDetailPage: ({ processId,
|
|
3982
|
+
declare const WfoProcessDetailPage: ({ processId, }: WfoProcessDetailPageProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3980
3983
|
|
|
3981
3984
|
interface WfoStartProcessPageProps {
|
|
3982
3985
|
processName: string;
|
|
@@ -4036,7 +4039,7 @@ declare const getCsvFileNameWithDate: (fileNameWithoutExtension: string) => stri
|
|
|
4036
4039
|
declare const csvDownloadHandler: <T extends object, U extends object>(dataFetchFunction: () => Promise<T | undefined>, dataMapper: (data: T) => U[], pageInfoMapper: (data: T) => GraphQLPageInfo, keyOrder: string[], filename: string, addToastFunction: (type: ToastTypes, text: string, title: string) => void, translationFunction: (translationKey: string, variables?: TranslationValues | undefined) => string) => () => Promise<void>;
|
|
4037
4040
|
|
|
4038
4041
|
declare const getCurrentBrowserLocale: () => string;
|
|
4039
|
-
declare const parseDate: (date: string | null | undefined) => Date | null;
|
|
4042
|
+
declare const parseDate: (date: string | null | undefined | number) => Date | null;
|
|
4040
4043
|
declare const calculateTimeDifference: (from: string, to: string) => string;
|
|
4041
4044
|
declare const formatDate: (dateString: string | undefined | null) => string;
|
|
4042
4045
|
declare const parseIsoString: (dateToStringParser: (date: Date | null) => string) => (date: string | null) => string;
|