@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.
Files changed (32) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/.turbo/turbo-test.log +7 -7
  4. package/CHANGELOG.md +24 -0
  5. package/dist/index.d.ts +16 -13
  6. package/dist/index.js +1600 -1520
  7. package/package.json +1 -1
  8. package/src/components/WfoBadges/WfoWebsocketStatusBadge/WfoWebsocketStatusBadge.tsx +1 -1
  9. package/src/components/WfoForms/formFields/utils.spec.ts +24 -6
  10. package/src/components/WfoKeyValueTable/styles.ts +0 -1
  11. package/src/components/WfoSettingsModal/WfoSettingsModal.tsx +28 -22
  12. package/src/components/WfoSubscription/WfoInUseByRelations.tsx +1 -1
  13. package/src/components/WfoSubscription/WfoRelatedSubscriptions.tsx +2 -1
  14. package/src/components/WfoSubscription/WfoSubscriptionDetailTree.tsx +4 -24
  15. package/src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoProductBlockKeyValueRow.tsx +2 -3
  16. package/src/components/WfoSubscription/WfoSubscriptionProductBlock/WfoSubscriptionProductBlock.tsx +93 -36
  17. package/src/components/WfoSubscription/WfoSubscriptionProductBlock/styles.ts +16 -10
  18. package/src/components/WfoTable/WfoTableSettingsModal/WfoTableSettingsModal.tsx +5 -2
  19. package/src/components/WfoTable/WfoTableWithFilter/WfoTableWithFilter.tsx +4 -4
  20. package/src/components/WfoTree/treeUtils.spec.ts +20 -4
  21. package/src/components/WfoWorkflowSteps/WfoStep/WfoStepForm.tsx +20 -6
  22. package/src/messages/en-GB.json +5 -1
  23. package/src/messages/nl-NL.json +5 -1
  24. package/src/pages/processes/WfoProcessDetailPage.tsx +23 -70
  25. package/src/pages/processes/WfoStartProcessPage.tsx +30 -3
  26. package/src/rtk/api.ts +2 -2
  27. package/src/rtk/endpoints/processDetail.ts +15 -4
  28. package/src/rtk/endpoints/processList.ts +1 -1
  29. package/src/rtk/endpoints/streamMessages.ts +25 -10
  30. package/src/rtk/endpoints/subscriptionDetail.ts +4 -1
  31. package/src/types/types.ts +1 -1
  32. package/src/utils/date.ts +3 -1
@@ -1,5 +1,5 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.24.0 build
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
  CLI Building entry: src/index.ts
@@ -9,6 +9,6 @@
9
9
  ESM Build start
10
10
  DTS Build start
11
11
  ESM dist/index.js 2.15 MB
12
- ESM ⚡️ Build success in 807ms
13
- DTS ⚡️ Build success in 14047ms
14
- DTS dist/index.d.ts 173.27 KB
12
+ ESM ⚡️ Build success in 803ms
13
+ DTS ⚡️ Build success in 13528ms
14
+ DTS dist/index.d.ts 173.37 KB
@@ -1,5 +1,5 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.24.0 lint
2
+ > @orchestrator-ui/orchestrator-ui-components@1.26.0 lint
3
3
  > eslint "src/**/*.ts*"
4
4
 
5
5
 
@@ -1,19 +1,19 @@
1
1
 
2
- > @orchestrator-ui/orchestrator-ui-components@1.24.0 test
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/utils/date.spec.ts
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.218 s
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
- processList = "processList",
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 ownerSubscriptionId\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";
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
- ownerSubscriptionId: string;
2179
- subscriptionInstanceId: string;
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: ({ ownerSubscriptionId, subscriptionInstanceId, productBlockInstanceValues, inUseByRelations, isOutsideCurrentSubscription, }: WfoSubscriptionProductBlockProps) => _emotion_react_jsx_runtime.JSX.Element;
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, processDetailRefetchInterval, }: WfoProcessDetailPageProps) => _emotion_react_jsx_runtime.JSX.Element;
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;