@techdocs/cli 0.0.0-nightly-20241221023113 → 0.0.0-nightly-20241223023412

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 CHANGED
@@ -1,11 +1,11 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20241221023113
3
+ ## 0.0.0-nightly-20241223023412
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies
8
- - @backstage/backend-defaults@0.0.0-nightly-20241221023113
8
+ - @backstage/backend-defaults@0.0.0-nightly-20241223023412
9
9
  - @backstage/plugin-techdocs-node@1.12.15
10
10
  - @backstage/catalog-model@1.7.2
11
11
  - @backstage/cli-common@0.1.15
@@ -3160,18 +3160,17 @@
3160
3160
  "packageName": "@backstage/plugin-auth-backend-module-github-provider"
3161
3161
  },
3162
3162
  {
3163
- "path": "../../plugins/auth-backend-module-google-provider/config.d.ts",
3163
+ "path": "../../plugins/auth-backend-module-gitlab-provider/config.d.ts",
3164
3164
  "value": {
3165
3165
  "type": "object",
3166
3166
  "properties": {
3167
3167
  "auth": {
3168
- "description": "Configuration options for the auth plugin",
3169
3168
  "type": "object",
3170
3169
  "properties": {
3171
3170
  "providers": {
3172
3171
  "type": "object",
3173
3172
  "properties": {
3174
- "google": {
3173
+ "gitlab": {
3175
3174
  "visibility": "frontend",
3176
3175
  "type": "object",
3177
3176
  "additionalProperties": {
@@ -3184,6 +3183,9 @@
3184
3183
  "visibility": "secret",
3185
3184
  "type": "string"
3186
3185
  },
3186
+ "audience": {
3187
+ "type": "string"
3188
+ },
3187
3189
  "callbackUrl": {
3188
3190
  "type": "string"
3189
3191
  },
@@ -3212,7 +3214,7 @@
3212
3214
  "properties": {
3213
3215
  "resolver": {
3214
3216
  "type": "string",
3215
- "const": "emailMatchingUserEntityAnnotation"
3217
+ "const": "usernameMatchingUserEntityName"
3216
3218
  }
3217
3219
  },
3218
3220
  "required": [
@@ -3271,20 +3273,21 @@
3271
3273
  },
3272
3274
  "$schema": "http://json-schema.org/draft-07/schema#"
3273
3275
  },
3274
- "packageName": "@backstage/plugin-auth-backend-module-google-provider"
3276
+ "packageName": "@backstage/plugin-auth-backend-module-gitlab-provider"
3275
3277
  },
3276
3278
  {
3277
- "path": "../../plugins/auth-backend-module-microsoft-provider/config.d.ts",
3279
+ "path": "../../plugins/auth-backend-module-google-provider/config.d.ts",
3278
3280
  "value": {
3279
3281
  "type": "object",
3280
3282
  "properties": {
3281
3283
  "auth": {
3284
+ "description": "Configuration options for the auth plugin",
3282
3285
  "type": "object",
3283
3286
  "properties": {
3284
3287
  "providers": {
3285
3288
  "type": "object",
3286
3289
  "properties": {
3287
- "microsoft": {
3290
+ "google": {
3288
3291
  "visibility": "frontend",
3289
3292
  "type": "object",
3290
3293
  "additionalProperties": {
@@ -3293,16 +3296,10 @@
3293
3296
  "clientId": {
3294
3297
  "type": "string"
3295
3298
  },
3296
- "tenantId": {
3297
- "type": "string"
3298
- },
3299
3299
  "clientSecret": {
3300
3300
  "visibility": "secret",
3301
3301
  "type": "string"
3302
3302
  },
3303
- "domainHint": {
3304
- "type": "string"
3305
- },
3306
3303
  "callbackUrl": {
3307
3304
  "type": "string"
3308
3305
  },
@@ -3319,9 +3316,6 @@
3319
3316
  }
3320
3317
  ]
3321
3318
  },
3322
- "skipUserProfile": {
3323
- "type": "boolean"
3324
- },
3325
3319
  "signIn": {
3326
3320
  "type": "object",
3327
3321
  "properties": {
@@ -3382,8 +3376,7 @@
3382
3376
  },
3383
3377
  "required": [
3384
3378
  "clientId",
3385
- "clientSecret",
3386
- "tenantId"
3379
+ "clientSecret"
3387
3380
  ]
3388
3381
  }
3389
3382
  }
@@ -3394,10 +3387,10 @@
3394
3387
  },
3395
3388
  "$schema": "http://json-schema.org/draft-07/schema#"
3396
3389
  },
3397
- "packageName": "@backstage/plugin-auth-backend-module-microsoft-provider"
3390
+ "packageName": "@backstage/plugin-auth-backend-module-google-provider"
3398
3391
  },
3399
3392
  {
3400
- "path": "../../plugins/auth-backend-module-oauth2-provider/config.d.ts",
3393
+ "path": "../../plugins/auth-backend-module-microsoft-provider/config.d.ts",
3401
3394
  "value": {
3402
3395
  "type": "object",
3403
3396
  "properties": {
@@ -3407,7 +3400,7 @@
3407
3400
  "providers": {
3408
3401
  "type": "object",
3409
3402
  "properties": {
3410
- "oauth2": {
3403
+ "microsoft": {
3411
3404
  "visibility": "frontend",
3412
3405
  "type": "object",
3413
3406
  "additionalProperties": {
@@ -3416,18 +3409,17 @@
3416
3409
  "clientId": {
3417
3410
  "type": "string"
3418
3411
  },
3419
- "clientSecret": {
3420
- "visibility": "secret",
3412
+ "tenantId": {
3421
3413
  "type": "string"
3422
3414
  },
3423
- "authorizationUrl": {
3415
+ "clientSecret": {
3416
+ "visibility": "secret",
3424
3417
  "type": "string"
3425
3418
  },
3426
- "tokenUrl": {
3419
+ "domainHint": {
3427
3420
  "type": "string"
3428
3421
  },
3429
- "scope": {
3430
- "deprecated": "use `additionalScopes` instead",
3422
+ "callbackUrl": {
3431
3423
  "type": "string"
3432
3424
  },
3433
3425
  "additionalScopes": {
@@ -3443,10 +3435,7 @@
3443
3435
  }
3444
3436
  ]
3445
3437
  },
3446
- "disableRefresh": {
3447
- "type": "boolean"
3448
- },
3449
- "includeBasicAuth": {
3438
+ "skipUserProfile": {
3450
3439
  "type": "boolean"
3451
3440
  },
3452
3441
  "signIn": {
@@ -3461,7 +3450,7 @@
3461
3450
  "properties": {
3462
3451
  "resolver": {
3463
3452
  "type": "string",
3464
- "const": "usernameMatchingUserEntityName"
3453
+ "const": "emailMatchingUserEntityAnnotation"
3465
3454
  }
3466
3455
  },
3467
3456
  "required": [
@@ -3508,10 +3497,9 @@
3508
3497
  }
3509
3498
  },
3510
3499
  "required": [
3511
- "authorizationUrl",
3512
3500
  "clientId",
3513
3501
  "clientSecret",
3514
- "tokenUrl"
3502
+ "tenantId"
3515
3503
  ]
3516
3504
  }
3517
3505
  }
@@ -3522,10 +3510,10 @@
3522
3510
  },
3523
3511
  "$schema": "http://json-schema.org/draft-07/schema#"
3524
3512
  },
3525
- "packageName": "@backstage/plugin-auth-backend-module-oauth2-provider"
3513
+ "packageName": "@backstage/plugin-auth-backend-module-microsoft-provider"
3526
3514
  },
3527
3515
  {
3528
- "path": "../../plugins/auth-backend-module-gitlab-provider/config.d.ts",
3516
+ "path": "../../plugins/auth-backend-module-oauth2-provider/config.d.ts",
3529
3517
  "value": {
3530
3518
  "type": "object",
3531
3519
  "properties": {
@@ -3535,7 +3523,7 @@
3535
3523
  "providers": {
3536
3524
  "type": "object",
3537
3525
  "properties": {
3538
- "gitlab": {
3526
+ "oauth2": {
3539
3527
  "visibility": "frontend",
3540
3528
  "type": "object",
3541
3529
  "additionalProperties": {
@@ -3548,10 +3536,14 @@
3548
3536
  "visibility": "secret",
3549
3537
  "type": "string"
3550
3538
  },
3551
- "audience": {
3539
+ "authorizationUrl": {
3552
3540
  "type": "string"
3553
3541
  },
3554
- "callbackUrl": {
3542
+ "tokenUrl": {
3543
+ "type": "string"
3544
+ },
3545
+ "scope": {
3546
+ "deprecated": "use `additionalScopes` instead",
3555
3547
  "type": "string"
3556
3548
  },
3557
3549
  "additionalScopes": {
@@ -3567,6 +3559,12 @@
3567
3559
  }
3568
3560
  ]
3569
3561
  },
3562
+ "disableRefresh": {
3563
+ "type": "boolean"
3564
+ },
3565
+ "includeBasicAuth": {
3566
+ "type": "boolean"
3567
+ },
3570
3568
  "signIn": {
3571
3569
  "type": "object",
3572
3570
  "properties": {
@@ -3626,8 +3624,10 @@
3626
3624
  }
3627
3625
  },
3628
3626
  "required": [
3627
+ "authorizationUrl",
3629
3628
  "clientId",
3630
- "clientSecret"
3629
+ "clientSecret",
3630
+ "tokenUrl"
3631
3631
  ]
3632
3632
  }
3633
3633
  }
@@ -3638,7 +3638,7 @@
3638
3638
  },
3639
3639
  "$schema": "http://json-schema.org/draft-07/schema#"
3640
3640
  },
3641
- "packageName": "@backstage/plugin-auth-backend-module-gitlab-provider"
3641
+ "packageName": "@backstage/plugin-auth-backend-module-oauth2-provider"
3642
3642
  },
3643
3643
  {
3644
3644
  "path": "../../plugins/auth-backend-module-oidc-provider/config.d.ts",
@@ -3755,7 +3755,7 @@
3755
3755
  "packageName": "@backstage/plugin-auth-backend-module-oidc-provider"
3756
3756
  },
3757
3757
  {
3758
- "path": "../../plugins/auth-backend-module-onelogin-provider/config.d.ts",
3758
+ "path": "../../plugins/auth-backend-module-okta-provider/config.d.ts",
3759
3759
  "value": {
3760
3760
  "type": "object",
3761
3761
  "properties": {
@@ -3765,7 +3765,7 @@
3765
3765
  "providers": {
3766
3766
  "type": "object",
3767
3767
  "properties": {
3768
- "onelogin": {
3768
+ "okta": {
3769
3769
  "visibility": "frontend",
3770
3770
  "type": "object",
3771
3771
  "additionalProperties": {
@@ -3778,12 +3778,31 @@
3778
3778
  "visibility": "secret",
3779
3779
  "type": "string"
3780
3780
  },
3781
- "issuer": {
3781
+ "audience": {
3782
+ "type": "string"
3783
+ },
3784
+ "authServerId": {
3785
+ "type": "string"
3786
+ },
3787
+ "idp": {
3782
3788
  "type": "string"
3783
3789
  },
3784
3790
  "callbackUrl": {
3785
3791
  "type": "string"
3786
3792
  },
3793
+ "additionalScopes": {
3794
+ "anyOf": [
3795
+ {
3796
+ "type": "array",
3797
+ "items": {
3798
+ "type": "string"
3799
+ }
3800
+ },
3801
+ {
3802
+ "type": "string"
3803
+ }
3804
+ ]
3805
+ },
3787
3806
  "signIn": {
3788
3807
  "type": "object",
3789
3808
  "properties": {
@@ -3796,7 +3815,7 @@
3796
3815
  "properties": {
3797
3816
  "resolver": {
3798
3817
  "type": "string",
3799
- "const": "usernameMatchingUserEntityName"
3818
+ "const": "emailMatchingUserEntityAnnotation"
3800
3819
  }
3801
3820
  },
3802
3821
  "required": [
@@ -3844,8 +3863,7 @@
3844
3863
  },
3845
3864
  "required": [
3846
3865
  "clientId",
3847
- "clientSecret",
3848
- "issuer"
3866
+ "clientSecret"
3849
3867
  ]
3850
3868
  }
3851
3869
  }
@@ -3856,10 +3874,10 @@
3856
3874
  },
3857
3875
  "$schema": "http://json-schema.org/draft-07/schema#"
3858
3876
  },
3859
- "packageName": "@backstage/plugin-auth-backend-module-onelogin-provider"
3877
+ "packageName": "@backstage/plugin-auth-backend-module-okta-provider"
3860
3878
  },
3861
3879
  {
3862
- "path": "../../plugins/auth-backend-module-okta-provider/config.d.ts",
3880
+ "path": "../../plugins/auth-backend-module-onelogin-provider/config.d.ts",
3863
3881
  "value": {
3864
3882
  "type": "object",
3865
3883
  "properties": {
@@ -3869,7 +3887,7 @@
3869
3887
  "providers": {
3870
3888
  "type": "object",
3871
3889
  "properties": {
3872
- "okta": {
3890
+ "onelogin": {
3873
3891
  "visibility": "frontend",
3874
3892
  "type": "object",
3875
3893
  "additionalProperties": {
@@ -3882,31 +3900,12 @@
3882
3900
  "visibility": "secret",
3883
3901
  "type": "string"
3884
3902
  },
3885
- "audience": {
3886
- "type": "string"
3887
- },
3888
- "authServerId": {
3889
- "type": "string"
3890
- },
3891
- "idp": {
3903
+ "issuer": {
3892
3904
  "type": "string"
3893
3905
  },
3894
3906
  "callbackUrl": {
3895
3907
  "type": "string"
3896
3908
  },
3897
- "additionalScopes": {
3898
- "anyOf": [
3899
- {
3900
- "type": "array",
3901
- "items": {
3902
- "type": "string"
3903
- }
3904
- },
3905
- {
3906
- "type": "string"
3907
- }
3908
- ]
3909
- },
3910
3909
  "signIn": {
3911
3910
  "type": "object",
3912
3911
  "properties": {
@@ -3919,7 +3918,7 @@
3919
3918
  "properties": {
3920
3919
  "resolver": {
3921
3920
  "type": "string",
3922
- "const": "emailMatchingUserEntityAnnotation"
3921
+ "const": "usernameMatchingUserEntityName"
3923
3922
  }
3924
3923
  },
3925
3924
  "required": [
@@ -3967,7 +3966,8 @@
3967
3966
  },
3968
3967
  "required": [
3969
3968
  "clientId",
3970
- "clientSecret"
3969
+ "clientSecret",
3970
+ "issuer"
3971
3971
  ]
3972
3972
  }
3973
3973
  }
@@ -3978,7 +3978,7 @@
3978
3978
  },
3979
3979
  "$schema": "http://json-schema.org/draft-07/schema#"
3980
3980
  },
3981
- "packageName": "@backstage/plugin-auth-backend-module-okta-provider"
3981
+ "packageName": "@backstage/plugin-auth-backend-module-onelogin-provider"
3982
3982
  },
3983
3983
  {
3984
3984
  "path": "../integration-aws-node/config.d.ts",
@@ -1 +1 @@
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="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.beed748d.js"></script><script defer="defer" src="/static/module-material-ui.05c1a36a.js"></script><script defer="defer" src="/static/module-lodash.aa647045.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f702282a.js"></script><script defer="defer" src="/static/module-material-table.84f30b2f.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer="defer" src="/static/module-zod.4f2eeb8c.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-remix-run.ba6397c2.js"></script><script defer="defer" src="/static/vendor.beed748d.js"></script><script defer="defer" src="/static/main.beed748d.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
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="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.a90fd85d.js"></script><script defer="defer" src="/static/module-material-ui.05c1a36a.js"></script><script defer="defer" src="/static/module-lodash.aa647045.js"></script><script defer="defer" src="/static/module-date-fns.c633d602.js"></script><script defer="defer" src="/static/module-mui.f702282a.js"></script><script defer="defer" src="/static/module-material-table.84f30b2f.js"></script><script defer="defer" src="/static/module-react-dom.42a304d3.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer="defer" src="/static/module-zod.4f2eeb8c.js"></script><script defer="defer" src="/static/module-i18next.f50c1612.js"></script><script defer="defer" src="/static/module-remix-run.ba6397c2.js"></script><script defer="defer" src="/static/vendor.a90fd85d.js"></script><script defer="defer" src="/static/main.a90fd85d.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -42,7 +42,7 @@
42
42
  color="#5bbad5"
43
43
  />
44
44
  <title><%= config.getString('app.title') %></title>
45
- <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.beed748d.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.05c1a36a.js"></script><script defer src="<%= publicPath %>/static/module-lodash.aa647045.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f702282a.js"></script><script defer src="<%= publicPath %>/static/module-material-table.84f30b2f.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer src="<%= publicPath %>/static/module-zod.4f2eeb8c.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ba6397c2.js"></script><script defer src="<%= publicPath %>/static/vendor.beed748d.js"></script><script defer src="<%= publicPath %>/static/main.beed748d.js"></script></head>
45
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.a90fd85d.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.05c1a36a.js"></script><script defer src="<%= publicPath %>/static/module-lodash.aa647045.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.c633d602.js"></script><script defer src="<%= publicPath %>/static/module-mui.f702282a.js"></script><script defer src="<%= publicPath %>/static/module-material-table.84f30b2f.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.42a304d3.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.b474cfe9.js"></script><script defer src="<%= publicPath %>/static/module-zod.4f2eeb8c.js"></script><script defer src="<%= publicPath %>/static/module-i18next.f50c1612.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.ba6397c2.js"></script><script defer src="<%= publicPath %>/static/vendor.a90fd85d.js"></script><script defer src="<%= publicPath %>/static/main.a90fd85d.js"></script></head>
46
46
  <body>
47
47
  <noscript>You need to enable JavaScript to run this app.</noscript>
48
48
  <div id="root"></div>
@@ -550,4 +550,4 @@ ${U.href}
550
550
 
551
551
  Feedback:`),Rt=W?.type==="github"?(0,hs.F)($.href,"blob"):$.href,$t=Fn()(Rt),Mt=`/${$t.organization}/${$t.name}`,Ut=U.cloneNode();switch(W?.type){case"gitlab":Ut.href=`${$.origin}${Mt}/issues/new?issue[title]=${ot}&issue[description]=${Ct}`;break;case"github":Ut.href=`${$.origin}${Mt}/issues/new?title=${ot}&body=${Ct}`;break;default:return D}return pn(a.createElement(gs.A),Ut),Ut.style.paddingLeft="5px",Ut.title="Leave feedback for this page",Ut.id="git-feedback-link",U?.insertAdjacentElement("beforebegin",Ut),D};var bn=t(38097);const Sn=(0,x.A)(f=>({button:{color:f.palette.primary.light,textDecoration:"underline"}})),fs=({message:f,handleButtonClick:D,autoHideDuration:U})=>{const $=Sn(),[W,Z]=(0,a.useState)(!0),ot=()=>Z(!1);return(0,n.jsx)(bn.A,{open:W,anchorOrigin:{vertical:"top",horizontal:"right"},autoHideDuration:U,color:"primary",onClose:ot,message:f,action:(0,n.jsx)(tt.A,{classes:{root:$.button},size:"small",onClick:()=>{ot(),D()},children:"Redirect now"})})},Nn=(f,D)=>{const $=W=>{const Z=jn(window.location.href),ot=new URL(W,Z);if(ot.hostname!==window.location.hostname){const Rt=window.location.pathname,$t=Rt.indexOf(D),Mt=Rt.slice(0,$t+D.length);return new URL(Mt,Z).href}return ot.href};return W=>{for(const Z of Array.from(W.querySelectorAll("meta")))if(Z.getAttribute("http-equiv")==="refresh"){const ot=Z.getAttribute("content")?.split("url=");if(!ot||ot.length<2)return W;const Ct=ot[1],Rt=$(Ct);if(window.location.href===Rt)return W;const $t=document.createElement("div");return pn((0,n.jsx)(fs,{message:"This TechDocs page is no longer maintained. Will automatically redirect to the designated replacement.",handleButtonClick:()=>f(Rt),autoHideDuration:3e3}),$t),document.body.appendChild($t),setTimeout(()=>{f(Rt)},3e3),W}return W}},kn=()=>f=>(setTimeout(()=>{const D=f?.querySelectorAll("li.md-nav__item--active");D.length!==0&&(D.forEach($=>{const W=$?.querySelector("input");W?.checked||W?.click()}),D[D.length-1].scrollIntoView())},200),f);var ms=t(50868),vs=t(10437),ys=t(71677),Es=t(87051),As=t(36338);const xs=(0,Es.A)(f=>({tooltip:{fontSize:"inherit",color:f.palette.text.primary,margin:0,padding:f.spacing(.5),backgroundColor:"transparent",boxShadow:"none"}}))(ys.Ay),Cs=()=>(0,n.jsx)(vs.A,{children:(0,n.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"})}),bs=({text:f})=>{const[D,U]=(0,a.useState)(!1),[,$]=(0,As.A)(),W=(0,a.useCallback)(()=>{$(f),U(!0)},[f,$]),Z=(0,a.useCallback)(()=>{U(!1)},[U]);return(0,n.jsx)(xs,{title:"Copied to clipboard",placement:"left",open:D,onClose:Z,leaveDelay:1e3,children:(0,n.jsx)(It.A,{style:{color:"inherit",position:"absolute"},className:"md-clipboard md-icon",onClick:W,children:(0,n.jsx)(Cs,{})})})},Ss=f=>D=>{const U=D.querySelectorAll("pre > code");for(const $ of U){const W=$.textContent||"",Z=document.createElement("div");$?.parentElement?.prepend(Z),pn((0,n.jsx)(ms.A,{theme:f,children:(0,n.jsx)(bs,{text:W})}),Z)}return D},Os=({baseUrl:f,onClick:D})=>U=>(Array.from(U.getElementsByTagName("a")).forEach($=>{$.addEventListener("click",W=>{const ot=$.getAttribute("href");ot&&ot.startsWith(f)&&!$.hasAttribute("download")&&(W.preventDefault(),D(W,ot))})}),U),Wn=({onLoading:f,onLoaded:D})=>U=>(f(),U.addEventListener(p,function $(){D(),U.removeEventListener(p,$)}),U);function Ps(f,D){const U=new URL(D),$=`${U.origin}${U.pathname.replace(/\/$/,"")}`,W=f.replace($,"").replace(/^\/+/,""),Z=new URL(`http://localhost/${W}`);return`${Z.pathname}${Z.search}${Z.hash}`}function Kn(){const f=(0,a.useRef)((0,jt.Zp)()),U=(0,dt.gf)(G.U).getOptionalString("app.baseUrl");return(0,a.useCallback)(W=>{let Z=W;if(U)try{Z=Ps(W,U)}catch{}f.current(Z)},[U])}const zn="screen and (max-width: 76.1875em)",Ts=f=>{const D=Kn(),U=(0,Ve.A)(),$=(0,He.A)(zn),W=Ie(),Z=as(),ot=(0,X.s)(),Ct=(0,dt.gf)(_e.s),Rt=(0,dt.gf)(Ue.Y),{state:$t,path:Mt,content:Ut}=Be(),{"*":Jt=""}=(0,jt.g)(),[Gt,le]=(0,a.useState)(null),Yt=A(Gt),ce=(0,a.useCallback)(()=>{if(!Gt)return;Gt.querySelectorAll(".md-sidebar").forEach(te=>{if($)te.style.top="0px";else{const Pe=document?.querySelector(".techdocs-reader-page")?.getBoundingClientRect().top??0;let De=Gt.getBoundingClientRect().top??0;const cn=Gt.querySelector(".md-container > .md-tabs")?.getBoundingClientRect().height??0;De<Pe&&(De=Pe);const Ye=Math.max(De,0)+cn;te.style.top=`${Ye}px`;const ln=Gt.querySelector(".md-container > .md-footer")?.getBoundingClientRect().top??window.innerHeight;te.style.height=`${ln-Ye}px`}te.style.setProperty("opacity","1")})},[Gt,$]);(0,a.useEffect)(()=>(window.addEventListener("resize",ce),window.addEventListener("scroll",ce,!0),()=>{window.removeEventListener("resize",ce),window.removeEventListener("scroll",ce,!0)}),[Gt,ce]);const he=(0,a.useCallback)(()=>{if(!Gt)return;const Zt=Gt.querySelector(".md-footer");Zt&&(Zt.style.width=`${Gt.getBoundingClientRect().width}px`)},[Gt]);(0,a.useEffect)(()=>(window.addEventListener("resize",he),()=>{window.removeEventListener("resize",he)}),[Gt,he]),(0,a.useEffect)(()=>{Yt||(he(),ce())},[$t,Yt,he,ce]);const qt=(0,a.useCallback)((Zt,te)=>Cn(Zt,[W,Mn({techdocsStorageApi:Ct,entityId:f,path:te}),cs(),ds(),us(),Un(),ps(Rt),Z]),[f,Rt,Ct,W,Z]),Qt=(0,a.useCallback)(async Zt=>Cn(Zt,[Nn(D,f.name),kn(),Ss(U),Os({baseUrl:window.location.origin,onClick:(te,re)=>{const Pe=te.ctrlKey||te.metaKey,De=new URL(re),en=te.target?.innerText||re,cn=re.replace(window.location.origin,"");ot.captureEvent("click",en,{attributes:{to:cn}}),De.hash?Pe?window.open(re,"_blank"):(window.location.pathname!==De.pathname?D(re):window.history.pushState(null,document.title,De.hash),Zt?.querySelector(`[id="${De.hash.slice(1)}"]`)?.scrollIntoView()):Pe?window.open(re,"_blank"):D(re)}}),Wn({onLoading:()=>{},onLoaded:()=>{Zt.querySelector(".md-nav__title")?.removeAttribute("for")}}),Wn({onLoading:()=>{Array.from(Zt.querySelectorAll(".md-sidebar")).forEach(re=>{re.style.setProperty("opacity","0")})},onLoaded:()=>{}})]),[U,D,ot,f.name]);return(0,a.useEffect)(()=>{if(!Ut)return()=>{};let Zt=!0;return qt(Ut,Mt).then(async te=>{if(!te?.innerHTML||!Zt||Jt!==Mt)return;window.scroll({top:0});const re=await Qt(te);le(re)}),()=>{Zt=!1}},[Ut,Jt,Mt,qt,Qt]),Gt};var On=t(41883),Fe=t(72020),Oe=t(99730);const Ne=()=>{const f=(0,Fe.YR)(),{shadowRoot:D}=(0,m.V)(),U=D?.querySelector('[data-md-component="content"]'),$=D?.querySelector('div[data-md-component="sidebar"][data-md-type="navigation"], div[data-md-component="navigation"]');let W=$?.querySelector('[data-techdocs-addons-location="primary sidebar"]');W||(W=document.createElement("div"),W.setAttribute("data-techdocs-addons-location","primary sidebar"),$?.prepend(W));const Z=D?.querySelector('div[data-md-component="sidebar"][data-md-type="toc"], div[data-md-component="toc"]');let ot=Z?.querySelector('[data-techdocs-addons-location="secondary sidebar"]');return ot||(ot=document.createElement("div"),ot.setAttribute("data-techdocs-addons-location","secondary sidebar"),Z?.prepend(ot)),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(On.A,{container:W,children:f.renderComponentsByLocation(Oe.e.PrimarySidebar)}),(0,n.jsx)(On.A,{container:U,children:f.renderComponentsByLocation(Oe.e.Content)}),(0,n.jsx)(On.A,{container:ot,children:f.renderComponentsByLocation(Oe.e.SecondarySidebar)})]})},ws=(0,x.A)({search:{width:"100%","@media (min-width: 76.1875em)":{width:"calc(100% - 34.4rem)",margin:"0 auto"},"@media print":{display:"none"}}}),Hn=on(f=>{const{withSearch:D=!0,searchResultUrlMapper:U,onReady:$}=f,W=ws(),{entityMetadata:{value:Z,loading:ot},entityRef:Ct,setShadowRoot:Rt}=(0,m.V)(),{state:$t}=Be(),Mt=Ts(Ct),Ut=window.location.pathname,Jt=window.location.hash,Gt=A(Mt),[le]=R([`[id="${Jt.slice(1)}"]`]);(0,a.useEffect)(()=>{Gt||(Jt?le&&le.scrollIntoView():document?.querySelector("header")?.scrollIntoView())},[Ut,Jt,le,Gt]);const Yt=(0,a.useCallback)(ce=>{Rt(ce),$ instanceof Function&&$()},[Rt,$]);return ot===!1&&!Z?(0,n.jsx)(F.M,{status:"404",statusMessage:"PAGE NOT FOUND"}):Mt?(0,n.jsx)(M.U,{children:(0,n.jsxs)(d.A,{container:!0,children:[(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(We,{})}),D&&(0,n.jsx)(d.A,{className:W.search,xs:"auto",item:!0,children:(0,n.jsx)(de,{entityId:Ct,entityTitle:Z?.metadata?.title,searchResultUrlMapper:U})}),(0,n.jsxs)(d.A,{xs:12,item:!0,children:[($t==="CHECKING"||Gt)&&(0,n.jsx)(J.k,{}),(0,n.jsx)(y,{element:Mt,onAppend:Yt,children:(0,n.jsx)(Ne,{})})]})]})}):(0,n.jsx)(M.U,{children:(0,n.jsx)(d.A,{container:!0,children:(0,n.jsx)(d.A,{xs:12,item:!0,children:(0,n.jsx)(We,{})})})})}),Rs=null},45061:(H,b,t)=>{"use strict";t.d(b,{T:()=>Q});var n=t(31085),a=t(14041),d=t(93285),x=t(42899),m=t(4387),h=t(13660),u=t(72020),g=t(86892),p=t(99730),v=t(67871),A=t(8859),y=t(34428),P=t(51372),T=t(58837),R=t(268),O=t(72501),j=t(72072);const F=(0,T.A)(G=>({root:{textAlign:"left"},label:{color:G.page.fontColor,fontWeight:G.typography.fontWeightBold,letterSpacing:0,fontSize:G.typography.fontSize,marginBottom:G.spacing(1)/2,lineHeight:1},value:{color:(0,R.X4)(G.page.fontColor,.8),fontSize:G.typography.fontSize,lineHeight:1}}),{name:"BackstageHeaderLabel"}),M=({value:G,className:ct,typographyRootComponent:lt})=>(0,n.jsx)(O.A,{component:lt??(typeof G=="string"?"p":"span"),className:ct,children:G});function J(G){const{label:ct,value:lt,url:At,contentTypograpyRootComponent:Pt}=G,Ot=F(),ht=(0,n.jsx)(M,{className:Ot.value,value:lt||"<Unknown>",typographyRootComponent:Pt});return(0,n.jsx)(x.A,{item:!0,children:(0,n.jsxs)(O.A,{component:"span",className:Ot.root,children:[(0,n.jsx)(O.A,{className:Ot.label,children:ct}),At?(0,n.jsx)(j.N_,{to:At,children:ht}):ht]})})}var V=t(69814),k=t(72427),Y=t(65461),q=t(9222),N=t(45250),dt=t(82779);const X=(0,n.jsx)(m.A,{animation:"wave",variant:"text",height:40}),Q=G=>{const{children:ct}=G,lt=(0,u.YR)(),At=(0,k.gf)(Y.U),{title:Pt,setTitle:Ot,subtitle:ht,setSubtitle:gt,entityRef:Et,metadata:{value:mt,loading:St},entityMetadata:{value:bt,loading:Dt}}=(0,g.V)();(0,a.useEffect)(()=>{mt&&(Ot(mt.site_name),gt(()=>{let{site_description:xt}=mt;return(!xt||xt==="None")&&(xt=""),xt}))},[mt,Ot,gt]);const Bt=At.getOptional("app.title")||"Backstage",It=[Pt,ht,Bt].filter(Boolean).join(" | "),{locationMetadata:ut,spec:it}=bt||{},tt=it?.lifecycle,B=bt?(0,v.t)(bt,P.vv):[],K=(0,q.S)(dt.rQ)(),rt=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(J,{label:(0,N.capitalize)(bt?.kind||"entity"),value:(0,n.jsx)(A.z,{color:"inherit",entityRef:Et,title:bt?.metadata.title,defaultKind:"Component"})}),B.length>0&&(0,n.jsx)(J,{label:"Owner",value:(0,n.jsx)(y.i,{color:"inherit",entityRefs:B,defaultKind:"group"})}),tt?(0,n.jsx)(J,{label:"Lifecycle",value:String(tt)}):null,ut&&ut.type!=="dir"&&ut.type!=="file"?(0,n.jsx)(J,{label:"",value:(0,n.jsxs)(x.A,{container:!0,direction:"column",alignItems:"center",children:[(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:(0,n.jsx)(h.A,{style:{marginTop:"-25px"}})}),(0,n.jsx)(x.A,{style:{padding:0},item:!0,children:"Source"})]}),url:ut.target}):null]});return!Dt&&bt===void 0||!St&&mt===void 0?null:(0,n.jsxs)(V.Y,{type:"Documentation",typeLink:K,title:Pt||X,subtitle:ht===""?void 0:ht||X,children:[(0,n.jsx)(d.A,{titleTemplate:"%s",children:(0,n.jsx)("title",{children:It})}),rt,ct,lt.renderComponentsByLocation(p.e.Header)]})}},82779:(H,b,t)=>{"use strict";t.d(b,{Oc:()=>d,Ri:()=>x,rQ:()=>a});var n=t(34569);const a=(0,n.H)({id:"techdocs:index-page"}),d=(0,n.H)({id:"techdocs:reader-page",params:["namespace","kind","name"]}),x=(0,n.H)({id:"techdocs:catalog-reader-view"})},27698:(H,b,t)=>{"use strict";t.r(b),t.d(b,{TechDocsSearchResultListItem:()=>v});var n=t(31085),a=t(14041),d=t(46423),x=t(5951),m=t(58837),h=t(72501),u=t(72072),g=t(70734);const p=(0,m.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),v=A=>{const{result:y,highlight:P,lineClamp:T=5,asListItem:R=!0,asLink:O=!0,title:j,icon:F}=A,M=p(),J=({children:Y})=>O?(0,n.jsx)(u.N_,{noTrack:!0,to:y.location,children:Y}):(0,n.jsx)(n.Fragment,{children:Y}),V=()=>{const Y=P?.fields.title?(0,n.jsx)(g.e,{text:P.fields.title,preTag:P.preTag,postTag:P.postTag}):y.title,q=P?.fields.entityTitle?(0,n.jsx)(g.e,{text:P.fields.entityTitle,preTag:P.preTag,postTag:P.postTag}):y.entityTitle,N=P?.fields.name?(0,n.jsx)(g.e,{text:P.fields.name,preTag:P.preTag,postTag:P.postTag}):y.name;return y?(0,n.jsx)(x.A,{className:M.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,n.jsx)(J,{children:j||(0,n.jsxs)(n.Fragment,{children:[Y," | ",q??N," docs"]})}),secondary:(0,n.jsx)(h.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:T,overflow:"hidden"},color:"textSecondary",variant:"body2",children:P?.fields.text?(0,n.jsx)(g.e,{text:P.fields.text,preTag:P.preTag,postTag:P.postTag}):y.text})}):null},k=({children:Y})=>R?(0,n.jsxs)(n.Fragment,{children:[F&&(0,n.jsx)(d.A,{children:typeof F=="function"?F(y):F}),(0,n.jsx)("div",{className:M.flexContainer,children:Y})]}):(0,n.jsx)(n.Fragment,{children:Y});return(0,n.jsx)(k,{children:(0,n.jsx)(V,{})})}},97184:(H,b,t)=>{const a=document.querySelector('meta[name="backstage-public-path"]')?.getAttribute("content");a&&(t.p=a)},86973:()=>{}},H=>{var b=n=>H(H.s=n);H.O(0,[1751,1888,5067,1678,235,6587,1975,5042,7400,4538,4121],()=>(b(97184),b(47149)));var t=H.O()}]);})();
552
552
 
553
- //# sourceMappingURL=main.beed748d.js.map
553
+ //# sourceMappingURL=main.a90fd85d.js.map