@backstage/core-components 0.18.11 → 0.18.12-next.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/CHANGELOG.md +7 -0
- package/config.schema.json +42 -0
- package/package.json +12 -12
- package/config.d.ts +0 -60
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"auth": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"autologout": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"enabled": {
|
|
12
|
+
"type": "boolean",
|
|
13
|
+
"description": "Enable or disable the autologout feature",
|
|
14
|
+
"visibility": "frontend"
|
|
15
|
+
},
|
|
16
|
+
"idleTimeoutMinutes": {
|
|
17
|
+
"type": "number",
|
|
18
|
+
"description": "Number of minutes after which the inactive user is logged out automatically. Default is 60 minutes (1 hour)",
|
|
19
|
+
"visibility": "frontend"
|
|
20
|
+
},
|
|
21
|
+
"promptBeforeIdleSeconds": {
|
|
22
|
+
"type": "number",
|
|
23
|
+
"description": "Number of seconds before the idle timeout where the user will be asked if it's still active. A dialog will be shown. Default is 10 seconds. Set to 0 seconds to disable the prompt.",
|
|
24
|
+
"visibility": "frontend"
|
|
25
|
+
},
|
|
26
|
+
"useWorkerTimers": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Enable/disable the usage of worker thread timers instead of main thread timers. Default is true. If you experience some browser incompatibility, you may try to set this to false.",
|
|
29
|
+
"visibility": "frontend"
|
|
30
|
+
},
|
|
31
|
+
"logoutIfDisconnected": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open. Default is true.",
|
|
34
|
+
"visibility": "frontend"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"description": "Autologout feature configuration"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/core-components",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.12-next.0",
|
|
4
4
|
"description": "Core components used by Backstage plugins and apps",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "web-library"
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"files": [
|
|
56
56
|
"dist",
|
|
57
|
-
"config.
|
|
57
|
+
"config.schema.json"
|
|
58
58
|
],
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "backstage-cli package build",
|
|
@@ -66,11 +66,11 @@
|
|
|
66
66
|
"test": "backstage-cli package test"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@backstage/config": "
|
|
70
|
-
"@backstage/core-plugin-api": "
|
|
71
|
-
"@backstage/errors": "
|
|
72
|
-
"@backstage/theme": "
|
|
73
|
-
"@backstage/version-bridge": "
|
|
69
|
+
"@backstage/config": "1.3.8",
|
|
70
|
+
"@backstage/core-plugin-api": "1.12.8-next.0",
|
|
71
|
+
"@backstage/errors": "1.3.1",
|
|
72
|
+
"@backstage/theme": "0.7.3",
|
|
73
|
+
"@backstage/version-bridge": "1.0.12",
|
|
74
74
|
"@dagrejs/dagre": "^1.1.4",
|
|
75
75
|
"@date-io/core": "^1.3.13",
|
|
76
76
|
"@material-table/core": "^3.1.0",
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
"zod": "^3.25.76 || ^4.0.0"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
|
-
"@backstage/app-defaults": "
|
|
114
|
-
"@backstage/cli": "
|
|
115
|
-
"@backstage/core-app-api": "
|
|
116
|
-
"@backstage/test-utils": "
|
|
113
|
+
"@backstage/app-defaults": "1.7.10-next.0",
|
|
114
|
+
"@backstage/cli": "0.36.4-next.0",
|
|
115
|
+
"@backstage/core-app-api": "1.20.3-next.0",
|
|
116
|
+
"@backstage/test-utils": "1.7.20-next.0",
|
|
117
117
|
"@testing-library/dom": "^10.0.0",
|
|
118
118
|
"@testing-library/jest-dom": "^6.0.0",
|
|
119
119
|
"@testing-library/user-event": "^14.0.0",
|
|
@@ -149,6 +149,6 @@
|
|
|
149
149
|
"optional": true
|
|
150
150
|
}
|
|
151
151
|
},
|
|
152
|
-
"configSchema": "config.
|
|
152
|
+
"configSchema": "config.schema.json",
|
|
153
153
|
"module": "./dist/index.esm.js"
|
|
154
154
|
}
|
package/config.d.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2023 The Backstage Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export interface Config {
|
|
17
|
-
auth?: {
|
|
18
|
-
/**
|
|
19
|
-
* Autologout feature configuration
|
|
20
|
-
*/
|
|
21
|
-
autologout?: {
|
|
22
|
-
/**
|
|
23
|
-
* Enable or disable the autologout feature
|
|
24
|
-
* @visibility frontend
|
|
25
|
-
*/
|
|
26
|
-
enabled?: boolean;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Number of minutes after which the inactive user is logged out automatically.
|
|
30
|
-
* Default is 60 minutes (1 hour)
|
|
31
|
-
* @visibility frontend
|
|
32
|
-
*/
|
|
33
|
-
idleTimeoutMinutes?: number;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Number of seconds before the idle timeout where the user will be asked if it's still active.
|
|
37
|
-
* A dialog will be shown.
|
|
38
|
-
* Default is 10 seconds.
|
|
39
|
-
* Set to 0 seconds to disable the prompt.
|
|
40
|
-
* @visibility frontend
|
|
41
|
-
*/
|
|
42
|
-
promptBeforeIdleSeconds?: number;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Enable/disable the usage of worker thread timers instead of main thread timers.
|
|
46
|
-
* Default is true.
|
|
47
|
-
* If you experience some browser incompatibility, you may try to set this to false.
|
|
48
|
-
* @visibility frontend
|
|
49
|
-
*/
|
|
50
|
-
useWorkerTimers?: boolean;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.
|
|
54
|
-
* Default is true.
|
|
55
|
-
* @visibility frontend
|
|
56
|
-
*/
|
|
57
|
-
logoutIfDisconnected?: boolean;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
}
|