@techdocs/cli 1.10.2 → 1.10.3-next.1
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 +19 -0
- package/dist/commands/serve/mkdocs.cjs.js +4 -5
- package/dist/commands/serve/mkdocs.cjs.js.map +1 -1
- package/dist/commands/serve/serve.cjs.js +4 -5
- package/dist/commands/serve/serve.cjs.js.map +1 -1
- package/dist/commands/serve/utils.cjs.js +7 -10
- package/dist/commands/serve/utils.cjs.js.map +1 -1
- package/dist/embedded-app/.config-schema.json +227 -230
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/index.html.tmpl +1 -1
- package/dist/embedded-app/static/1155.1bc918a1.chunk.js +10 -0
- package/dist/embedded-app/static/{1155.c6c120ba.chunk.js.map → 1155.1bc918a1.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{1335.e649d01a.chunk.js → 1335.d9759037.chunk.js} +2 -2
- package/dist/embedded-app/static/{1335.e649d01a.chunk.js.map → 1335.d9759037.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{1749.ecaae025.chunk.js → 1749.aa6bc589.chunk.js} +2 -2
- package/dist/embedded-app/static/{1749.ecaae025.chunk.js.map → 1749.aa6bc589.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{1994.90be16c3.chunk.js → 1994.ca9d4fc1.chunk.js} +2 -2
- package/dist/embedded-app/static/{1994.90be16c3.chunk.js.map → 1994.ca9d4fc1.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{2295.676254a6.chunk.js → 2295.3f44c986.chunk.js} +2 -2
- package/dist/embedded-app/static/{2295.676254a6.chunk.js.map → 2295.3f44c986.chunk.js.map} +1 -1
- package/dist/embedded-app/static/4591.8c1cd36f.chunk.js +2 -0
- package/dist/embedded-app/static/4591.8c1cd36f.chunk.js.map +1 -0
- package/dist/embedded-app/static/{4648.42e253c5.chunk.js → 4648.68d2c6ff.chunk.js} +2 -2
- package/dist/embedded-app/static/{4648.42e253c5.chunk.js.map → 4648.68d2c6ff.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{5574.3e0b1b01.chunk.js → 5574.723a5e64.chunk.js} +2 -2
- package/dist/embedded-app/static/{5574.3e0b1b01.chunk.js.map → 5574.723a5e64.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{7203.f047878f.chunk.js → 6138.ca5f4dea.chunk.js} +2 -2
- package/dist/embedded-app/static/{6138.72f63616.chunk.js.map → 6138.ca5f4dea.chunk.js.map} +1 -1
- package/dist/embedded-app/static/6270.33cbf043.chunk.js +2 -0
- package/dist/embedded-app/static/{6270.0cf24ebb.chunk.js.map → 6270.33cbf043.chunk.js.map} +1 -1
- package/dist/embedded-app/static/7186.96e6edf9.chunk.js +2 -0
- package/dist/embedded-app/static/{7186.c0fa7899.chunk.js.map → 7186.96e6edf9.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{6138.72f63616.chunk.js → 7203.7288c4e0.chunk.js} +2 -2
- package/dist/embedded-app/static/{7203.f047878f.chunk.js.map → 7203.7288c4e0.chunk.js.map} +1 -1
- package/dist/embedded-app/static/7226.99db194a.chunk.js +2 -0
- package/dist/embedded-app/static/{7226.f8fc7544.chunk.js.map → 7226.99db194a.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{7382.688a734f.chunk.js → 7382.836db1c7.chunk.js} +2 -2
- package/dist/embedded-app/static/{7382.688a734f.chunk.js.map → 7382.836db1c7.chunk.js.map} +1 -1
- package/dist/embedded-app/static/7526.601d8e47.chunk.js +2 -0
- package/dist/embedded-app/static/{7526.a9e2aca8.chunk.js.map → 7526.601d8e47.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8125.d73ed16d.chunk.js → 8125.2e82046f.chunk.js} +3 -3
- package/dist/embedded-app/static/{8125.d73ed16d.chunk.js.map → 8125.2e82046f.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{9050.47091371.chunk.js → 9050.1b486cae.chunk.js} +2 -2
- package/dist/embedded-app/static/{9050.47091371.chunk.js.map → 9050.1b486cae.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{9230.57f4ae14.chunk.js → 9230.02b12ff0.chunk.js} +2 -2
- package/dist/embedded-app/static/{9230.57f4ae14.chunk.js.map → 9230.02b12ff0.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{9579.46a875e3.chunk.js → 9579.beaea584.chunk.js} +2 -2
- package/dist/embedded-app/static/{9579.46a875e3.chunk.js.map → 9579.beaea584.chunk.js.map} +1 -1
- package/dist/embedded-app/static/main.1e025874.js +550 -0
- package/dist/embedded-app/static/main.1e025874.js.map +1 -0
- package/dist/embedded-app/static/{runtime.1ed9627a.js → runtime.a358dfe6.js} +2 -2
- package/dist/embedded-app/static/runtime.a358dfe6.js.map +1 -0
- package/dist/embedded-app/static/vendor.4b7983a7.js +2 -0
- package/dist/embedded-app/static/vendor.4b7983a7.js.map +1 -0
- package/dist/lib/mkdocsServer.cjs.js +10 -10
- package/dist/lib/mkdocsServer.cjs.js.map +1 -1
- package/dist/package.json.cjs.js +1 -1
- package/package.json +7 -7
- package/dist/embedded-app/static/1155.c6c120ba.chunk.js +0 -10
- package/dist/embedded-app/static/4591.c7904e2c.chunk.js +0 -2
- package/dist/embedded-app/static/4591.c7904e2c.chunk.js.map +0 -1
- package/dist/embedded-app/static/6270.0cf24ebb.chunk.js +0 -2
- package/dist/embedded-app/static/7186.c0fa7899.chunk.js +0 -2
- package/dist/embedded-app/static/7226.f8fc7544.chunk.js +0 -2
- package/dist/embedded-app/static/7526.a9e2aca8.chunk.js +0 -2
- package/dist/embedded-app/static/main.a9a0a87c.js +0 -550
- package/dist/embedded-app/static/main.a9a0a87c.js.map +0 -1
- package/dist/embedded-app/static/runtime.1ed9627a.js.map +0 -1
- package/dist/embedded-app/static/vendor.5686e88b.js +0 -2
- package/dist/embedded-app/static/vendor.5686e88b.js.map +0 -1
- package/dist/lib/run.cjs.js +0 -58
- package/dist/lib/run.cjs.js.map +0 -1
|
@@ -131,6 +131,52 @@
|
|
|
131
131
|
},
|
|
132
132
|
"packageName": "@backstage/plugin-permission-common"
|
|
133
133
|
},
|
|
134
|
+
{
|
|
135
|
+
"path": "../core-components/config.d.ts",
|
|
136
|
+
"value": {
|
|
137
|
+
"type": "object",
|
|
138
|
+
"properties": {
|
|
139
|
+
"auth": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"properties": {
|
|
142
|
+
"autologout": {
|
|
143
|
+
"description": "Autologout feature configuration",
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"enabled": {
|
|
147
|
+
"description": "Enable or disable the autologout feature",
|
|
148
|
+
"visibility": "frontend",
|
|
149
|
+
"type": "boolean"
|
|
150
|
+
},
|
|
151
|
+
"idleTimeoutMinutes": {
|
|
152
|
+
"description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
|
|
153
|
+
"visibility": "frontend",
|
|
154
|
+
"type": "number"
|
|
155
|
+
},
|
|
156
|
+
"promptBeforeIdleSeconds": {
|
|
157
|
+
"description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
|
|
158
|
+
"visibility": "frontend",
|
|
159
|
+
"type": "number"
|
|
160
|
+
},
|
|
161
|
+
"useWorkerTimers": {
|
|
162
|
+
"description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
|
|
163
|
+
"visibility": "frontend",
|
|
164
|
+
"type": "boolean"
|
|
165
|
+
},
|
|
166
|
+
"logoutIfDisconnected": {
|
|
167
|
+
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
|
|
168
|
+
"visibility": "frontend",
|
|
169
|
+
"type": "boolean"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
177
|
+
},
|
|
178
|
+
"packageName": "@backstage/core-components"
|
|
179
|
+
},
|
|
134
180
|
{
|
|
135
181
|
"path": "../core-app-api/config.d.ts",
|
|
136
182
|
"value": {
|
|
@@ -358,113 +404,6 @@
|
|
|
358
404
|
},
|
|
359
405
|
"packageName": "@backstage/core-app-api"
|
|
360
406
|
},
|
|
361
|
-
{
|
|
362
|
-
"path": "../core-components/config.d.ts",
|
|
363
|
-
"value": {
|
|
364
|
-
"type": "object",
|
|
365
|
-
"properties": {
|
|
366
|
-
"auth": {
|
|
367
|
-
"type": "object",
|
|
368
|
-
"properties": {
|
|
369
|
-
"autologout": {
|
|
370
|
-
"description": "Autologout feature configuration",
|
|
371
|
-
"type": "object",
|
|
372
|
-
"properties": {
|
|
373
|
-
"enabled": {
|
|
374
|
-
"description": "Enable or disable the autologout feature",
|
|
375
|
-
"visibility": "frontend",
|
|
376
|
-
"type": "boolean"
|
|
377
|
-
},
|
|
378
|
-
"idleTimeoutMinutes": {
|
|
379
|
-
"description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
|
|
380
|
-
"visibility": "frontend",
|
|
381
|
-
"type": "number"
|
|
382
|
-
},
|
|
383
|
-
"promptBeforeIdleSeconds": {
|
|
384
|
-
"description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
|
|
385
|
-
"visibility": "frontend",
|
|
386
|
-
"type": "number"
|
|
387
|
-
},
|
|
388
|
-
"useWorkerTimers": {
|
|
389
|
-
"description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
|
|
390
|
-
"visibility": "frontend",
|
|
391
|
-
"type": "boolean"
|
|
392
|
-
},
|
|
393
|
-
"logoutIfDisconnected": {
|
|
394
|
-
"description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
|
|
395
|
-
"visibility": "frontend",
|
|
396
|
-
"type": "boolean"
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
404
|
-
},
|
|
405
|
-
"packageName": "@backstage/core-components"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"path": "../../plugins/techdocs/config.d.ts",
|
|
409
|
-
"value": {
|
|
410
|
-
"type": "object",
|
|
411
|
-
"properties": {
|
|
412
|
-
"techdocs": {
|
|
413
|
-
"description": "Configuration options for the techdocs plugin",
|
|
414
|
-
"type": "object",
|
|
415
|
-
"properties": {
|
|
416
|
-
"builder": {
|
|
417
|
-
"description": "Documentation building process depends on the builder attr",
|
|
418
|
-
"visibility": "frontend",
|
|
419
|
-
"enum": [
|
|
420
|
-
"external",
|
|
421
|
-
"local"
|
|
422
|
-
],
|
|
423
|
-
"type": "string"
|
|
424
|
-
},
|
|
425
|
-
"legacyUseCaseSensitiveTripletPaths": {
|
|
426
|
-
"description": "Allows fallback to case-sensitive triplets in case of migration issues.",
|
|
427
|
-
"visibility": "frontend",
|
|
428
|
-
"type": "boolean"
|
|
429
|
-
},
|
|
430
|
-
"sanitizer": {
|
|
431
|
-
"type": "object",
|
|
432
|
-
"properties": {
|
|
433
|
-
"allowedIframeHosts": {
|
|
434
|
-
"description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
|
|
435
|
-
"visibility": "frontend",
|
|
436
|
-
"type": "array",
|
|
437
|
-
"items": {
|
|
438
|
-
"type": "string"
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
"allowedCustomElementTagNameRegExp": {
|
|
442
|
-
"description": "Allows listed custom element tag name regex\nExample:\n allowedCustomElementTagNameRegExp: '^backstage-'\n this will allow all custom elements with tag name matching `^backstage-` like <backstage-custom-element /> etc.",
|
|
443
|
-
"visibility": "frontend",
|
|
444
|
-
"type": "string"
|
|
445
|
-
},
|
|
446
|
-
"allowedCustomElementAttributeNameRegExp": {
|
|
447
|
-
"description": "Allows listed custom element attribute name regex\nExample:\n allowedCustomElementAttributeNameRegExp: 'attribute1|attribute2'\n this will allow all custom element attributes matching `attribute1` or `attribute2` like <backstage-custom-element attribute1=\"yes\" attribute2/>",
|
|
448
|
-
"visibility": "frontend",
|
|
449
|
-
"type": "string"
|
|
450
|
-
},
|
|
451
|
-
"additionalAllowedURIProtocols": {
|
|
452
|
-
"description": "Allows listed protocols in attributes with URI values\nExample:\n additionalAllowedURIProtocols: ['vscode']\n this will allow all attributes with URI values to have `vscode` protocol like `vscode://some/path` in addition to the default protocols\n matched by DOMPurify's IS_ALLOWED_URI RegExp:",
|
|
453
|
-
"visibility": "frontend",
|
|
454
|
-
"type": "string"
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
},
|
|
461
|
-
"required": [
|
|
462
|
-
"techdocs"
|
|
463
|
-
],
|
|
464
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
465
|
-
},
|
|
466
|
-
"packageName": "@backstage/plugin-techdocs"
|
|
467
|
-
},
|
|
468
407
|
{
|
|
469
408
|
"path": "../integration/config.d.ts",
|
|
470
409
|
"value": {
|
|
@@ -1230,6 +1169,64 @@
|
|
|
1230
1169
|
},
|
|
1231
1170
|
"packageName": "@backstage/frontend-app-api"
|
|
1232
1171
|
},
|
|
1172
|
+
{
|
|
1173
|
+
"path": "../../plugins/techdocs/config.d.ts",
|
|
1174
|
+
"value": {
|
|
1175
|
+
"type": "object",
|
|
1176
|
+
"properties": {
|
|
1177
|
+
"techdocs": {
|
|
1178
|
+
"description": "Configuration options for the techdocs plugin",
|
|
1179
|
+
"type": "object",
|
|
1180
|
+
"properties": {
|
|
1181
|
+
"builder": {
|
|
1182
|
+
"description": "Documentation building process depends on the builder attr",
|
|
1183
|
+
"visibility": "frontend",
|
|
1184
|
+
"enum": [
|
|
1185
|
+
"external",
|
|
1186
|
+
"local"
|
|
1187
|
+
],
|
|
1188
|
+
"type": "string"
|
|
1189
|
+
},
|
|
1190
|
+
"legacyUseCaseSensitiveTripletPaths": {
|
|
1191
|
+
"description": "Allows fallback to case-sensitive triplets in case of migration issues.",
|
|
1192
|
+
"visibility": "frontend",
|
|
1193
|
+
"type": "boolean"
|
|
1194
|
+
},
|
|
1195
|
+
"sanitizer": {
|
|
1196
|
+
"type": "object",
|
|
1197
|
+
"properties": {
|
|
1198
|
+
"allowedIframeHosts": {
|
|
1199
|
+
"description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
|
|
1200
|
+
"visibility": "frontend",
|
|
1201
|
+
"type": "array",
|
|
1202
|
+
"items": {
|
|
1203
|
+
"type": "string"
|
|
1204
|
+
}
|
|
1205
|
+
},
|
|
1206
|
+
"allowedCustomElementTagNameRegExp": {
|
|
1207
|
+
"description": "Allows listed custom element tag name regex\nExample:\n allowedCustomElementTagNameRegExp: '^backstage-'\n this will allow all custom elements with tag name matching `^backstage-` like <backstage-custom-element /> etc.",
|
|
1208
|
+
"visibility": "frontend",
|
|
1209
|
+
"type": "string"
|
|
1210
|
+
},
|
|
1211
|
+
"allowedCustomElementAttributeNameRegExp": {
|
|
1212
|
+
"description": "Allows listed custom element attribute name regex\nExample:\n allowedCustomElementAttributeNameRegExp: 'attribute1|attribute2'\n this will allow all custom element attributes matching `attribute1` or `attribute2` like <backstage-custom-element attribute1=\"yes\" attribute2/>",
|
|
1213
|
+
"visibility": "frontend",
|
|
1214
|
+
"type": "string"
|
|
1215
|
+
},
|
|
1216
|
+
"additionalAllowedURIProtocols": {
|
|
1217
|
+
"description": "Allows listed protocols in attributes with URI values\nExample:\n additionalAllowedURIProtocols: ['vscode']\n this will allow all attributes with URI values to have `vscode` protocol like `vscode://some/path` in addition to the default protocols\n matched by DOMPurify's IS_ALLOWED_URI RegExp:",
|
|
1218
|
+
"visibility": "frontend",
|
|
1219
|
+
"type": "string"
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
},
|
|
1226
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1227
|
+
},
|
|
1228
|
+
"packageName": "@backstage/plugin-techdocs"
|
|
1229
|
+
},
|
|
1233
1230
|
{
|
|
1234
1231
|
"path": "../../plugins/catalog/config.d.ts",
|
|
1235
1232
|
"value": {
|
|
@@ -1481,105 +1478,6 @@
|
|
|
1481
1478
|
},
|
|
1482
1479
|
"packageName": "@backstage/plugin-auth-backend-module-guest-provider"
|
|
1483
1480
|
},
|
|
1484
|
-
{
|
|
1485
|
-
"path": "../backend-app-api/config.d.ts",
|
|
1486
|
-
"value": {
|
|
1487
|
-
"type": "object",
|
|
1488
|
-
"properties": {
|
|
1489
|
-
"backend": {
|
|
1490
|
-
"type": "object",
|
|
1491
|
-
"properties": {
|
|
1492
|
-
"packages": {
|
|
1493
|
-
"description": "Used by the feature discovery service",
|
|
1494
|
-
"anyOf": [
|
|
1495
|
-
{
|
|
1496
|
-
"type": "object",
|
|
1497
|
-
"properties": {
|
|
1498
|
-
"include": {
|
|
1499
|
-
"type": "array",
|
|
1500
|
-
"items": {
|
|
1501
|
-
"type": "string"
|
|
1502
|
-
}
|
|
1503
|
-
},
|
|
1504
|
-
"exclude": {
|
|
1505
|
-
"type": "array",
|
|
1506
|
-
"items": {
|
|
1507
|
-
"type": "string"
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
},
|
|
1512
|
-
{
|
|
1513
|
-
"const": "all",
|
|
1514
|
-
"type": "string"
|
|
1515
|
-
}
|
|
1516
|
-
]
|
|
1517
|
-
},
|
|
1518
|
-
"startup": {
|
|
1519
|
-
"type": "object",
|
|
1520
|
-
"properties": {
|
|
1521
|
-
"default": {
|
|
1522
|
-
"type": "object",
|
|
1523
|
-
"properties": {
|
|
1524
|
-
"onPluginBootFailure": {
|
|
1525
|
-
"description": "The default value for `onPluginBootFailure` if not specified for a particular plugin.\nThis defaults to 'abort', which means `onPluginBootFailure: continue` must be specified\nfor backend startup to continue on plugin boot failure. This can also be set to\n'continue', which flips the logic for individual plugins so that they must be set to\n`onPluginBootFailure: abort` to be required.",
|
|
1526
|
-
"enum": [
|
|
1527
|
-
"abort",
|
|
1528
|
-
"continue"
|
|
1529
|
-
],
|
|
1530
|
-
"type": "string"
|
|
1531
|
-
},
|
|
1532
|
-
"onPluginModuleBootFailure": {
|
|
1533
|
-
"description": "The default value for `onPluginModuleBootFailure` if not specified for a particular plugin module.\nThis defaults to 'abort', which means `onPluginModuleBootFailure: continue` must be specified\nfor backend startup to continue on plugin module boot failure. This can also be set to\n'continue', which flips the logic for individual plugin modules so that they must be set to\n`onPluginModuleBootFailure: abort` to be required.",
|
|
1534
|
-
"enum": [
|
|
1535
|
-
"abort",
|
|
1536
|
-
"continue"
|
|
1537
|
-
],
|
|
1538
|
-
"type": "string"
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
|
-
},
|
|
1542
|
-
"plugins": {
|
|
1543
|
-
"type": "object",
|
|
1544
|
-
"additionalProperties": {
|
|
1545
|
-
"type": "object",
|
|
1546
|
-
"properties": {
|
|
1547
|
-
"onPluginBootFailure": {
|
|
1548
|
-
"description": "Used to control backend startup behavior when this plugin fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nfails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin failures for plugins\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
|
|
1549
|
-
"enum": [
|
|
1550
|
-
"abort",
|
|
1551
|
-
"continue"
|
|
1552
|
-
],
|
|
1553
|
-
"type": "string"
|
|
1554
|
-
},
|
|
1555
|
-
"modules": {
|
|
1556
|
-
"type": "object",
|
|
1557
|
-
"additionalProperties": {
|
|
1558
|
-
"type": "object",
|
|
1559
|
-
"properties": {
|
|
1560
|
-
"onPluginModuleBootFailure": {
|
|
1561
|
-
"description": "Used to control backend startup behavior when this plugin module fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nmodule fails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin module failures for plugin modules\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
|
|
1562
|
-
"enum": [
|
|
1563
|
-
"abort",
|
|
1564
|
-
"continue"
|
|
1565
|
-
],
|
|
1566
|
-
"type": "string"
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
},
|
|
1579
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
1580
|
-
},
|
|
1581
|
-
"packageName": "@backstage/backend-app-api"
|
|
1582
|
-
},
|
|
1583
1481
|
{
|
|
1584
1482
|
"path": "../backend-defaults/config.d.ts",
|
|
1585
1483
|
"value": {
|
|
@@ -3152,30 +3050,6 @@
|
|
|
3152
3050
|
},
|
|
3153
3051
|
"packageName": "@backstage/backend-defaults"
|
|
3154
3052
|
},
|
|
3155
|
-
{
|
|
3156
|
-
"path": "../../plugins/events-node/config.d.ts",
|
|
3157
|
-
"value": {
|
|
3158
|
-
"type": "object",
|
|
3159
|
-
"properties": {
|
|
3160
|
-
"events": {
|
|
3161
|
-
"type": "object",
|
|
3162
|
-
"properties": {
|
|
3163
|
-
"useEventBus": {
|
|
3164
|
-
"description": "Whether to use the event bus API in the events plugin backend to\ndistribute events across multiple instances when publishing and\nsubscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be\nused if it's available, but will be disabled if the events backend\nreturns a 404.\n\nIf set to 'never', the events service will only ever publish events\nlocally to the same instance, while if set to 'always', the event bus API\nwill never be disabled, even if the events backend returns a 404.",
|
|
3165
|
-
"enum": [
|
|
3166
|
-
"always",
|
|
3167
|
-
"auto",
|
|
3168
|
-
"never"
|
|
3169
|
-
],
|
|
3170
|
-
"type": "string"
|
|
3171
|
-
}
|
|
3172
|
-
}
|
|
3173
|
-
}
|
|
3174
|
-
},
|
|
3175
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3176
|
-
},
|
|
3177
|
-
"packageName": "@backstage/plugin-events-node"
|
|
3178
|
-
},
|
|
3179
3053
|
{
|
|
3180
3054
|
"path": "../../plugins/auth-backend-module-google-provider/config.d.ts",
|
|
3181
3055
|
"value": {
|
|
@@ -3300,6 +3174,129 @@
|
|
|
3300
3174
|
},
|
|
3301
3175
|
"packageName": "@backstage/plugin-auth-backend-module-google-provider"
|
|
3302
3176
|
},
|
|
3177
|
+
{
|
|
3178
|
+
"path": "../backend-app-api/config.d.ts",
|
|
3179
|
+
"value": {
|
|
3180
|
+
"type": "object",
|
|
3181
|
+
"properties": {
|
|
3182
|
+
"backend": {
|
|
3183
|
+
"type": "object",
|
|
3184
|
+
"properties": {
|
|
3185
|
+
"packages": {
|
|
3186
|
+
"description": "Used by the feature discovery service",
|
|
3187
|
+
"anyOf": [
|
|
3188
|
+
{
|
|
3189
|
+
"type": "object",
|
|
3190
|
+
"properties": {
|
|
3191
|
+
"include": {
|
|
3192
|
+
"type": "array",
|
|
3193
|
+
"items": {
|
|
3194
|
+
"type": "string"
|
|
3195
|
+
}
|
|
3196
|
+
},
|
|
3197
|
+
"exclude": {
|
|
3198
|
+
"type": "array",
|
|
3199
|
+
"items": {
|
|
3200
|
+
"type": "string"
|
|
3201
|
+
}
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
},
|
|
3205
|
+
{
|
|
3206
|
+
"const": "all",
|
|
3207
|
+
"type": "string"
|
|
3208
|
+
}
|
|
3209
|
+
]
|
|
3210
|
+
},
|
|
3211
|
+
"startup": {
|
|
3212
|
+
"type": "object",
|
|
3213
|
+
"properties": {
|
|
3214
|
+
"default": {
|
|
3215
|
+
"type": "object",
|
|
3216
|
+
"properties": {
|
|
3217
|
+
"onPluginBootFailure": {
|
|
3218
|
+
"description": "The default value for `onPluginBootFailure` if not specified for a particular plugin.\nThis defaults to 'abort', which means `onPluginBootFailure: continue` must be specified\nfor backend startup to continue on plugin boot failure. This can also be set to\n'continue', which flips the logic for individual plugins so that they must be set to\n`onPluginBootFailure: abort` to be required.",
|
|
3219
|
+
"enum": [
|
|
3220
|
+
"abort",
|
|
3221
|
+
"continue"
|
|
3222
|
+
],
|
|
3223
|
+
"type": "string"
|
|
3224
|
+
},
|
|
3225
|
+
"onPluginModuleBootFailure": {
|
|
3226
|
+
"description": "The default value for `onPluginModuleBootFailure` if not specified for a particular plugin module.\nThis defaults to 'abort', which means `onPluginModuleBootFailure: continue` must be specified\nfor backend startup to continue on plugin module boot failure. This can also be set to\n'continue', which flips the logic for individual plugin modules so that they must be set to\n`onPluginModuleBootFailure: abort` to be required.",
|
|
3227
|
+
"enum": [
|
|
3228
|
+
"abort",
|
|
3229
|
+
"continue"
|
|
3230
|
+
],
|
|
3231
|
+
"type": "string"
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
},
|
|
3235
|
+
"plugins": {
|
|
3236
|
+
"type": "object",
|
|
3237
|
+
"additionalProperties": {
|
|
3238
|
+
"type": "object",
|
|
3239
|
+
"properties": {
|
|
3240
|
+
"onPluginBootFailure": {
|
|
3241
|
+
"description": "Used to control backend startup behavior when this plugin fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nfails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin failures for plugins\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
|
|
3242
|
+
"enum": [
|
|
3243
|
+
"abort",
|
|
3244
|
+
"continue"
|
|
3245
|
+
],
|
|
3246
|
+
"type": "string"
|
|
3247
|
+
},
|
|
3248
|
+
"modules": {
|
|
3249
|
+
"type": "object",
|
|
3250
|
+
"additionalProperties": {
|
|
3251
|
+
"type": "object",
|
|
3252
|
+
"properties": {
|
|
3253
|
+
"onPluginModuleBootFailure": {
|
|
3254
|
+
"description": "Used to control backend startup behavior when this plugin module fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nmodule fails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin module failures for plugin modules\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
|
|
3255
|
+
"enum": [
|
|
3256
|
+
"abort",
|
|
3257
|
+
"continue"
|
|
3258
|
+
],
|
|
3259
|
+
"type": "string"
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
}
|
|
3264
|
+
}
|
|
3265
|
+
}
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
},
|
|
3272
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3273
|
+
},
|
|
3274
|
+
"packageName": "@backstage/backend-app-api"
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
"path": "../../plugins/events-node/config.d.ts",
|
|
3278
|
+
"value": {
|
|
3279
|
+
"type": "object",
|
|
3280
|
+
"properties": {
|
|
3281
|
+
"events": {
|
|
3282
|
+
"type": "object",
|
|
3283
|
+
"properties": {
|
|
3284
|
+
"useEventBus": {
|
|
3285
|
+
"description": "Whether to use the event bus API in the events plugin backend to\ndistribute events across multiple instances when publishing and\nsubscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be\nused if it's available, but will be disabled if the events backend\nreturns a 404.\n\nIf set to 'never', the events service will only ever publish events\nlocally to the same instance, while if set to 'always', the event bus API\nwill never be disabled, even if the events backend returns a 404.",
|
|
3286
|
+
"enum": [
|
|
3287
|
+
"always",
|
|
3288
|
+
"auto",
|
|
3289
|
+
"never"
|
|
3290
|
+
],
|
|
3291
|
+
"type": "string"
|
|
3292
|
+
}
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
},
|
|
3296
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3297
|
+
},
|
|
3298
|
+
"packageName": "@backstage/plugin-events-node"
|
|
3299
|
+
},
|
|
3303
3300
|
{
|
|
3304
3301
|
"path": "../integration-aws-node/config.d.ts",
|
|
3305
3302
|
"value": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="color-scheme" content="light dark"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.
|
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="color-scheme" content="light dark"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.a358dfe6.js"></script><script defer="defer" src="/static/module-material-ui.d7e935bd.js"></script><script defer="defer" src="/static/module-lodash.4c0b97a0.js"></script><script defer="defer" src="/static/module-date-fns.ea38f57b.js"></script><script defer="defer" src="/static/module-mui.5d4d7042.js"></script><script defer="defer" src="/static/module-material-table.3ca211ef.js"></script><script defer="defer" src="/static/module-zod.ebbb06c8.js"></script><script defer="defer" src="/static/module-react-dom.e29ff3c5.js"></script><script defer="defer" src="/static/module-i18next.2dc1c3e2.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.ba954a31.js"></script><script defer="defer" src="/static/module-remix-run.a4991870.js"></script><script defer="defer" src="/static/vendor.4b7983a7.js"></script><script defer="defer" src="/static/main.1e025874.js"></script><link href="/static/main.5f8bd308.css" rel="stylesheet"><script type="backstage.io/config">[
|
|
2
2
|
{
|
|
3
3
|
"context": "app-config.yaml",
|
|
4
4
|
"data": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
color="#5bbad5"
|
|
44
44
|
/>
|
|
45
45
|
<title><%= config.getString('app.title') %></title>
|
|
46
|
-
<meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.
|
|
46
|
+
<meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.a358dfe6.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.d7e935bd.js"></script><script defer src="<%= publicPath %>/static/module-lodash.4c0b97a0.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.ea38f57b.js"></script><script defer src="<%= publicPath %>/static/module-mui.5d4d7042.js"></script><script defer src="<%= publicPath %>/static/module-material-table.3ca211ef.js"></script><script defer src="<%= publicPath %>/static/module-zod.ebbb06c8.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.e29ff3c5.js"></script><script defer src="<%= publicPath %>/static/module-i18next.2dc1c3e2.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.ba954a31.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.a4991870.js"></script><script defer src="<%= publicPath %>/static/vendor.4b7983a7.js"></script><script defer src="<%= publicPath %>/static/main.1e025874.js"></script><link href="<%= publicPath %>/static/main.5f8bd308.css" rel="stylesheet"></head>
|
|
47
47
|
<body>
|
|
48
48
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
49
49
|
<div id="root"></div>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["1155"],{90615:function(e,t,n){n.d(t,{K:()=>r});var a=n(18690);function r(e){return(0,a.g)()}},22845:function(e,t,n){n.d(t,{T7:()=>c,TY:()=>d,tN:()=>u});var a=n(31085),r=n(58077),s=n(92829),i=n(9135),o=n(20549);let l=(0,i.tK)("entity-context"),c=e=>{let{children:t,entity:n,loading:i,error:c,refresh:u}=e;return(0,a.jsx)(l.Provider,{value:(0,o.B)({1:{entity:n,loading:i,error:c,refresh:u}}),children:(0,a.jsx)(s.Ig,{attributes:{...n?{entityRef:(0,r.U2)(n)}:void 0},children:t})})};function u(){let e=(0,i.qO)("entity-context");if(!e)throw Error("Entity context is not available");let t=e.atVersion(1);if(!t)throw Error("EntityContext v1 not available");if(!t.entity)throw Error("useEntity hook is being called outside of an EntityLayout where the entity has not been loaded. If this is intentional, please use useAsyncEntity instead.");return{entity:t.entity}}function d(){let e=(0,i.qO)("entity-context");if(!e)throw Error("Entity context is not available");let t=e.atVersion(1);if(!t)throw Error("EntityContext v1 not available");let{entity:n,loading:a,error:r,refresh:s}=t;return{entity:n,loading:a,error:r,refresh:s}}},83390:function(e,t,n){n.d(t,{Router:()=>M,LegacyEmbeddedDocsRouter:()=>$});var a=n(31085),r=n(18690),s=n(58077),i=n(78931),o=n(95269),l=n(50875),c=n(85066),u=n(4518),d=n(14041),h=n(16647),p=n(90898);let m=({entity:e,withSearch:t=!0})=>{let n=(0,s.sM)(e),r=function(e){let{kind:t,name:n,namespace:a}=e,r=(0,h.S)(p.Oc),s=(0,h.S)(p.Ri);return(0,d.useMemo)(()=>{let e=r({kind:t,namespace:a,name:n}).replace(/\/+$/,""),i=s().replace(/\/+$/,"");return t=>{if(t.toLocaleLowerCase("en-US").startsWith(e.toLocaleLowerCase("en-US"))){let n=t.slice(e.length).replace(/^\/+/,"");return 0===n.length||n.startsWith("#")?`${i}${n}`:`${i}/${n}`}return t}},[r,s,t,n,a])}(n);if(e.metadata.annotations?.[i.GO])try{n=(0,s.KU)(e.metadata.annotations?.[i.GO])}catch{}let m=(0,o.oN)(e);return(0,a.jsxs)(l.Wj,{entityRef:n,children:[(0,a.jsx)(u.Z,{}),(0,a.jsx)(c.p,{withSearch:t,searchResultUrlMapper:r,defaultPath:m})]})};var g=n(34289),x=n(99480),f=n(22845),y=n(9720),j=n(64947),v=n(58837),w=n(72501),E=n(35571),A=n(4809),b=n(60603),k=n(89595),C=n(79811);let S=(0,v.A)(e=>({code:{borderRadius:6,margin:e.spacing(2,0),background:"dark"===e.palette.type?"#444":e.palette.common.white}}),{name:"BackstageMissingAnnotationEmptyState"});function R(e){var t;let n,r,s,i,o,l,c,u,{t:d}=(0,k.i)(C.j);try{n=(0,f.tN)().entity}catch(e){}let{annotation:h,readMoreUrl:p}=e,m=Array.isArray(h)?h:[h],g=S(),x=n?.kind||"Component",{yamlText:v,lineNumbers:R}=(t=n,r=t?.kind||"Component",s=t?.metadata.name||"example",i=t?.spec?.type||"website",o=t?.spec?.owner||"user:default/guest",l=`apiVersion: backstage.io/v1alpha1
|
|
2
|
+
kind: ${r}
|
|
3
|
+
metadata:
|
|
4
|
+
name: ${s}
|
|
5
|
+
annotations:${m.map(e=>`
|
|
6
|
+
${e}: value`).join("")}
|
|
7
|
+
spec:
|
|
8
|
+
type: ${i}
|
|
9
|
+
owner: ${o}`,c=6,u=[],m.forEach(()=>{u.push(c),c++}),{yamlText:l,lineNumbers:u});return(0,a.jsx)(E.p,{missing:"field",title:d("missingAnnotationEmptyState.title"),description:function(e,t="Component",n){let r=e.map(e=>(0,a.jsx)("code",{children:e},e)).reduce((e,t)=>(0,a.jsxs)(a.Fragment,{children:[e,", ",t]}));return n("missingAnnotationEmptyState.generateDescription",{count:e.length,entityKind:t,annotations:r})}(m,x,d),action:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.A,{variant:"body1",children:d("missingAnnotationEmptyState.annotationYaml",{entityKind:x})}),(0,a.jsx)(y.A,{className:g.code,children:(0,a.jsx)(A.z,{text:v,language:"yaml",showLineNumbers:!0,highlightedNumbers:R,customStyle:{background:"inherit",fontSize:"115%"}})}),(0,a.jsx)(j.A,{color:"primary",component:b.N_,to:p||"https://backstage.io/docs/features/software-catalog/well-known-annotations",children:d("missingAnnotationEmptyState.readMore")})]})})}let M=()=>(0,a.jsxs)(r.BV,{children:[(0,a.jsx)(r.qh,{path:"/",element:(0,a.jsx)(g.TechDocsIndexPage,{})}),(0,a.jsx)(r.qh,{path:"/:namespace/:kind/:name/*",element:(0,a.jsx)(x.W,{})})]}),O=e=>{let{children:t,emptyState:n,withSearch:s=!0}=e,{entity:o}=(0,f.tN)(),l=(0,r.Ye)([{path:"/*",element:(0,a.jsx)(m,{entity:o,withSearch:s}),children:[{path:"*",element:t}]}]);return o.metadata.annotations?.[i.As]||o.metadata.annotations?.[i.GO]?l:n??(0,a.jsx)(R,{annotation:[i.As]})},$=({children:e,withSearch:t=!0})=>(0,a.jsx)(O,{children:e,withSearch:t})},34289:function(e,t,n){n.d(t,{TechDocsIndexPage:()=>i});var a=n(31085),r=n(18690),s=n(70335);let i=e=>(0,r.P1)()||(0,a.jsx)(s.K,{...e})},99480:function(e,t,n){n.d(t,{W:()=>D});var a=n(31085),r=n(14041),s=n(18690),i=n(12439),o=n(55489),l=n(90479),c=n(63401),u=n(85066),d=n(68999),h=n(4518),p=n(90898),m=n(90615),g=n(65605),x=n(60691),f=n(77091),y=n(64947),j=n(50509),v=n(76637),w=n(71531),E=n(16261),A=n(76842),b=n(33947);function k(e){let{children:t,...n}=e,{Progress:s}=(0,f.n)().getComponents(),i=function(e){let{pluginId:t}=e??{},n=(0,j.gf)(v.a),a=(0,j.gf)(w.I),s=(0,r.useMemo)(()=>"BroadcastChannel"in window?new BroadcastChannel(`${t}-auth-cookie-expires-at`):null,[t]),[i,o]=function(e,t){let[n,a]=(0,r.useState)({status:"not-executed",error:void 0,result:void 0}),s=(0,r.useRef)(),i=(0,r.useRef)(),o=(0,E.J)({execute(...t){i.current=t;let n=e(...t);return s.current=n,a(e=>({...e,status:"loading"})),n.then(e=>{n===s.current&&a(t=>({...t,status:"success",error:void 0,result:e}))},e=>{n===s.current&&a(t=>({...t,status:"error",error:e}))}),n},reset(){a({status:"not-executed",error:void 0,result:void 0}),s.current=void 0,i.current=void 0}});return[n,(0,r.useMemo)(()=>({reset(){o.current.reset()},execute:(...e)=>o.current.execute(...e)}),[]),{promise:s.current,lastArgs:i.current}]}(async()=>{let e=await a.getBaseUrl(t),r=`${e}/.backstage/auth/v1/cookie`,s=await n.fetch(`${r}`,{credentials:"include"});if(!s.ok){if(404===s.status)return{expiresAt:new Date(Date.now()+31536e6)};throw await b.o.fromResponse(s)}let i=await s.json();if(!i.expiresAt)throw Error("No expiration date found in response");return i});(0,A.u)(o.execute);let l=(0,r.useCallback)(()=>{o.execute()},[o]),c=(0,r.useCallback)(e=>{let t=(1+3*Math.random())*6e4,n=setTimeout(l,Date.parse(e.expiresAt)-Date.now()-t);return()=>clearTimeout(n)},[l]);return((0,r.useEffect)(()=>{if("success"!==i.status||!i.result)return()=>{};s?.postMessage({action:"COOKIE_REFRESH_SUCCESS",payload:i.result});let e=c(i.result),t=t=>{let{action:n,payload:a}=t.data;"COOKIE_REFRESH_SUCCESS"===n&&(e(),e=c(a))};return s?.addEventListener("message",t),()=>{e(),s?.removeEventListener("message",t)}},[i,c,s]),"not-executed"===i.status||"loading"===i.status&&!i.result||"loading"===i.status&&i.error)?{status:"loading"}:"error"===i.status&&i.error?{status:"error",error:i.error,retry:l}:{status:"success",data:i.result}}(n);return"loading"===i.status?(0,a.jsx)(s,{}):"error"===i.status?(0,a.jsx)(x.b,{error:i.error,children:(0,a.jsx)(y.A,{variant:"outlined",onClick:i.retry,children:"Retry"})}):(0,a.jsx)(a.Fragment,{children:t})}var C=n(99314),S=n(54917),R=n(41329),M=n(50868),O=n(73466),$=n(16647),I=n(76272),L=n(58077),_=n(95269),N=n(78931);let T=e=>{let{withSearch:t,withHeader:n=!0}=e;return(0,a.jsxs)(i.Y,{themeId:"documentation",children:[n&&(0,a.jsx)(d.T,{}),(0,a.jsx)(h.Z,{}),(0,a.jsx)(u.p,{withSearch:t})]})},B=(0,C.A)(i.Y)({height:"inherit",overflowY:"visible"}),D=e=>{let t,n,i,u,d,h,x,f,y=(0,S.A)(),v=(0,r.useMemo)(()=>(0,R.A)({...y,...e.overrideThemeOptions||{}}),[y,e.overrideThemeOptions]),{kind:w,name:E,namespace:A}=(0,m.K)(p.Oc),{children:b,entityRef:C={kind:w,name:E,namespace:A}}=e,D=(0,s.P1)(),U=(0,r.useMemo)(()=>({kind:C.kind,name:C.name,namespace:C.namespace}),[C.kind,C.name,C.namespace]),{shouldShowProgress:F}=(t=(0,j.gf)(I.v),n=(0,s.Zp)(),i=(0,$.S)(p.Oc),u=(0,L.U2)(U),h=(d=(0,r.useRef)(null)).current!==u,x=(0,O.A)(async()=>{try{let e=await t.getEntityByRef(U);if(e?.metadata?.annotations?.[N.GO])return(0,_.b1)(e,i)}catch(e){}},[u,t]),(0,r.useEffect)(()=>{!x.loading&&x.value&&n(x.value,{replace:!0}),x.loading||x.value||(d.current=u)},[x.loading,x.value,n,u]),f=h&&x.loading||!!x.value,{loading:x.loading,shouldShowProgress:f}),K=(0,r.useMemo)(()=>b?null:(D?r.Children.toArray(D.props.children):[]).flatMap(e=>e?.props?.children??[]).find(e=>!(0,g.E)(e,l.AF)&&!(0,g.E)(e,l.Wm)),[b,D]);return F?(0,a.jsx)(o.k,{}):b?(0,a.jsx)(M.A,{theme:v,children:(0,a.jsx)(k,{pluginId:"techdocs",children:(0,a.jsx)(c.R,{entityRef:U,children:({metadata:e,entityMetadata:t,onReady:n})=>(0,a.jsx)(B,{themeId:"documentation",className:"techdocs-reader-page",children:b instanceof Function?b({entityRef:U,techdocsMetadataValue:e.value,entityMetadataValue:t.value,onReady:n}):b})})})}):(0,a.jsx)(M.A,{theme:v,children:(0,a.jsx)(k,{pluginId:"techdocs",children:(0,a.jsx)(c.R,{entityRef:U,children:K||(0,a.jsx)(T,{})})})})}},4518:function(e,t,n){n.d(t,{Z:()=>x});var a=n(31085),r=n(14041),s=n(58837),i=n(29365),o=n(75173),l=n(71677),c=n(37757),u=n(9720),d=n(9684),h=n(63401),p=n(90479),m=n(10337);let g=(0,s.A)(e=>({root:{gridArea:"pageSubheader",flexDirection:"column",minHeight:"auto",padding:e.spacing(3,3,0),"@media print":{display:"none"}}})),x=e=>{let t=g(),[n,s]=(0,r.useState)(null),x=(0,r.useCallback)(e=>{s(e.currentTarget)},[]),f=(0,r.useCallback)(()=>{s(null)},[]),{entityMetadata:{value:y,loading:j}}=(0,h.V)(),v=(0,p.YR)(),w=v.renderComponentsByLocation(m.e.Subheader),E=v.renderComponentsByLocation(m.e.Settings);return(w||E)&&(!1!==j||y)?(0,a.jsx)(o.A,{classes:t,...e.toolbarProps,children:(0,a.jsxs)(u.A,{display:"flex",justifyContent:"flex-end",width:"100%",flexWrap:"wrap",children:[w,E?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(l.Ay,{title:"Settings",children:(0,a.jsx)(i.A,{"aria-controls":"tech-docs-reader-page-settings","aria-haspopup":"true",onClick:x,children:(0,a.jsx)(d.default,{})})}),(0,a.jsx)(c.A,{id:"tech-docs-reader-page-settings",getContentAnchorEl:null,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"right"},open:!!n,onClose:f,keepMounted:!0,children:(0,a.jsx)("div",{children:E})})]}):null]})}):null}}}]);
|
|
10
|
+
//# sourceMappingURL=1155.1bc918a1.chunk.js.map
|