@orchestrator-ui/orchestrator-ui-components 1.30.1 → 1.30.2
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 +3 -3
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +8 -8
- package/CHANGELOG.md +6 -0
- package/dist/index.js +8 -2
- package/package.json +1 -1
- package/src/rtk/endpoints/streamMessages.ts +9 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@1.30.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@1.30.2 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[32m1.87 MB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 680ms
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 14518ms
|
|
14
14
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m174.58 KB[39m
|
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@1.30.
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@1.30.2 test
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
5
|
PASS Wfo-UI Tests src/components/WfoForms/formFields/utils.spec.ts
|
|
@@ -8,23 +8,23 @@ PASS Wfo-UI Tests src/utils/date.spec.ts
|
|
|
8
8
|
PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
|
|
9
9
|
PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
|
|
10
10
|
PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
|
|
11
|
-
PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
|
|
12
|
-
PASS Wfo-UI Tests src/utils/string.spec.ts
|
|
13
11
|
PASS Wfo-UI Tests src/components/WfoTable/WfoDataGridTable/WfodataGridColumns.spec.ts
|
|
12
|
+
PASS Wfo-UI Tests src/utils/string.spec.ts
|
|
13
|
+
PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
|
|
14
14
|
PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
|
|
15
15
|
PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
|
|
16
16
|
PASS Wfo-UI Tests src/components/WfoTable/utils/mapSortableAndFilterableValuesToTableColumnConfig.spec.ts
|
|
17
|
-
PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
|
|
18
|
-
PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
|
|
19
17
|
PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
|
|
18
|
+
PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
|
|
19
|
+
PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
|
|
20
20
|
PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
|
|
21
21
|
PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
|
|
22
22
|
PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
|
|
23
23
|
PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
|
|
24
|
-
PASS Wfo-UI Tests src/utils/filterData.spec.ts
|
|
25
24
|
PASS Wfo-UI Tests src/utils/sortObjectKeys.spec.ts
|
|
26
|
-
PASS Wfo-UI Tests src/utils/
|
|
25
|
+
PASS Wfo-UI Tests src/utils/filterData.spec.ts
|
|
27
26
|
PASS Wfo-UI Tests src/components/WfoWorkflowSteps/stepListUtils.spec.ts
|
|
27
|
+
PASS Wfo-UI Tests src/utils/getTokenName.spec.ts
|
|
28
28
|
PASS Wfo-UI Tests src/utils/environmentVariables.spec.ts
|
|
29
29
|
PASS Wfo-UI Tests src/utils/onlyUnique.spec.ts
|
|
30
30
|
PASS Wfo-UI Tests src/utils/uuid.spec.ts
|
|
@@ -36,5 +36,5 @@ PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorW
|
|
|
36
36
|
Test Suites: 30 passed, 30 total
|
|
37
37
|
Tests: 169 passed, 169 total
|
|
38
38
|
Snapshots: 0 total
|
|
39
|
-
Time: 3.
|
|
39
|
+
Time: 3.938 s
|
|
40
40
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -33951,8 +33951,14 @@ var getToastMessage = (type, text, title) => {
|
|
|
33951
33951
|
// src/rtk/endpoints/streamMessages.ts
|
|
33952
33952
|
var getWebSocket = (url) => __async(void 0, null, function* () {
|
|
33953
33953
|
const session = yield getSession2();
|
|
33954
|
-
|
|
33955
|
-
|
|
33954
|
+
if (session == null ? void 0 : session.accessToken) {
|
|
33955
|
+
return new WebSocket(url, [
|
|
33956
|
+
"base64.bearer.token",
|
|
33957
|
+
session == null ? void 0 : session.accessToken
|
|
33958
|
+
]);
|
|
33959
|
+
} else {
|
|
33960
|
+
return new WebSocket(url);
|
|
33961
|
+
}
|
|
33956
33962
|
});
|
|
33957
33963
|
var PING_INTERVAL_MS = 45e3;
|
|
33958
33964
|
var DEBOUNCE_CLOSE_INTERVAL_MS = 6e4;
|
package/package.json
CHANGED
|
@@ -13,11 +13,15 @@ import { orchestratorApi } from '../api';
|
|
|
13
13
|
const getWebSocket = async (url: string) => {
|
|
14
14
|
const session = (await getSession()) as WfoSession;
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
if (session?.accessToken) {
|
|
17
|
+
// Implemented authentication taking this into account: https://stackoverflow.com/questions/4361173/http-headers-in-websockets-client-api/77060459#77060459
|
|
18
|
+
return new WebSocket(url, [
|
|
19
|
+
'base64.bearer.token',
|
|
20
|
+
session?.accessToken,
|
|
21
|
+
]);
|
|
22
|
+
} else {
|
|
23
|
+
return new WebSocket(url);
|
|
24
|
+
}
|
|
21
25
|
};
|
|
22
26
|
|
|
23
27
|
const PING_INTERVAL_MS = 45000; // Recommended values are between 30 and 60 seconds
|