@techdocs/cli 1.2.1-next.0 → 1.2.1-next.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.
Files changed (85) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/PublisherConfig-0ea58467.cjs.js.map +1 -1
  3. package/dist/cjs/generate-b897bd89.cjs.js.map +1 -1
  4. package/dist/cjs/migrate-62035c68.cjs.js.map +1 -1
  5. package/dist/cjs/mkdocs-1501e940.cjs.js.map +1 -1
  6. package/dist/cjs/mkdocsServer-99ec8af2.cjs.js.map +1 -1
  7. package/dist/cjs/publish-af5607e2.cjs.js.map +1 -1
  8. package/dist/cjs/serve-176119a3.cjs.js.map +1 -1
  9. package/dist/cjs/utility-647ad232.cjs.js.map +1 -1
  10. package/dist/embedded-app/.config-schema.json +26 -0
  11. package/dist/embedded-app/index.html +1 -1
  12. package/dist/embedded-app/static/1032.6bf895d9.chunk.js +3 -0
  13. package/dist/embedded-app/static/{1032.d8698f43.chunk.js.map → 1032.6bf895d9.chunk.js.map} +1 -1
  14. package/dist/embedded-app/static/1105.c6322959.chunk.js +3 -0
  15. package/dist/embedded-app/static/{1105.a04c4672.chunk.js.map → 1105.c6322959.chunk.js.map} +1 -1
  16. package/dist/embedded-app/static/184.ca141892.chunk.js +3 -0
  17. package/dist/embedded-app/static/{184.475a9a99.chunk.js.map → 184.ca141892.chunk.js.map} +1 -1
  18. package/dist/embedded-app/static/2440.1a4b182a.chunk.js +3 -0
  19. package/dist/embedded-app/static/{2440.c232dd8f.chunk.js.map → 2440.1a4b182a.chunk.js.map} +1 -1
  20. package/dist/embedded-app/static/5458.ace70612.chunk.js +3 -0
  21. package/dist/embedded-app/static/{5458.f6f5b0cd.chunk.js.map → 5458.ace70612.chunk.js.map} +1 -1
  22. package/dist/embedded-app/static/5837.00a42df7.chunk.js +3 -0
  23. package/dist/embedded-app/static/5837.00a42df7.chunk.js.map +1 -0
  24. package/dist/embedded-app/static/{4949.85095ea5.chunk.js → 5869.f1b2db13.chunk.js} +2 -2
  25. package/dist/embedded-app/static/5869.f1b2db13.chunk.js.map +1 -0
  26. package/dist/embedded-app/static/6051.89d185a1.chunk.js +4 -0
  27. package/dist/embedded-app/static/{6051.f911be84.chunk.js.map → 6051.89d185a1.chunk.js.map} +1 -1
  28. package/dist/embedded-app/static/732.069998a1.chunk.js +3 -0
  29. package/dist/embedded-app/static/{732.4b93361d.chunk.js.map → 732.069998a1.chunk.js.map} +1 -1
  30. package/dist/embedded-app/static/7560.2275e900.chunk.js +3 -0
  31. package/dist/embedded-app/static/{7560.107226bf.chunk.js.map → 7560.2275e900.chunk.js.map} +1 -1
  32. package/dist/embedded-app/static/{7750.359fffe7.chunk.js → 7750.7df70188.chunk.js} +3 -3
  33. package/dist/embedded-app/static/{7750.359fffe7.chunk.js.map → 7750.7df70188.chunk.js.map} +1 -1
  34. package/dist/embedded-app/static/{8951.848344b4.chunk.js → 8951.60ad2c85.chunk.js} +1 -1
  35. package/dist/embedded-app/static/{8951.848344b4.chunk.js.map → 8951.60ad2c85.chunk.js.map} +1 -1
  36. package/dist/embedded-app/static/9545.2c04e8ca.chunk.js +3 -0
  37. package/dist/embedded-app/static/{9545.6d9d6f79.chunk.js.map → 9545.2c04e8ca.chunk.js.map} +1 -1
  38. package/dist/embedded-app/static/9770.b0a8132c.chunk.js +3 -0
  39. package/dist/embedded-app/static/{9770.648fb0ea.chunk.js.map → 9770.b0a8132c.chunk.js.map} +1 -1
  40. package/dist/embedded-app/static/main.a427fd55.js +492 -0
  41. package/dist/embedded-app/static/main.a427fd55.js.map +1 -0
  42. package/dist/embedded-app/static/module-ajv.cf315a37.js +10 -0
  43. package/dist/embedded-app/static/module-ajv.cf315a37.js.map +1 -0
  44. package/dist/embedded-app/static/{module-lodash.32f2edbb.js → module-lodash.e87f9236.js} +2 -2
  45. package/dist/embedded-app/static/{module-lodash.32f2edbb.js.map → module-lodash.e87f9236.js.map} +1 -1
  46. package/dist/embedded-app/static/{module-material-table.17dcd6c7.js → module-material-table.44314bd8.js} +2 -2
  47. package/dist/embedded-app/static/{module-material-table.17dcd6c7.js.map → module-material-table.44314bd8.js.map} +1 -1
  48. package/dist/embedded-app/static/module-material-ui.1cc685be.js +74 -0
  49. package/dist/embedded-app/static/module-material-ui.1cc685be.js.map +1 -0
  50. package/dist/embedded-app/static/module-octokit.74ddede2.js +5 -0
  51. package/dist/embedded-app/static/module-octokit.74ddede2.js.map +1 -0
  52. package/dist/embedded-app/static/{module-yaml.0874c6f8.js → module-yaml.cef9da5e.js} +2 -2
  53. package/dist/embedded-app/static/{module-yaml.0874c6f8.js.map → module-yaml.cef9da5e.js.map} +1 -1
  54. package/dist/embedded-app/static/{runtime.582cf8a9.js → runtime.a427fd55.js} +2 -2
  55. package/dist/embedded-app/static/{runtime.582cf8a9.js.map → runtime.a427fd55.js.map} +1 -1
  56. package/dist/embedded-app/static/vendor.a427fd55.js +236 -0
  57. package/dist/embedded-app/static/vendor.a427fd55.js.map +1 -0
  58. package/dist/index.cjs.js +1 -1
  59. package/dist/index.cjs.js.map +1 -1
  60. package/package.json +9 -11
  61. package/dist/embedded-app/static/1032.d8698f43.chunk.js +0 -3
  62. package/dist/embedded-app/static/1105.a04c4672.chunk.js +0 -3
  63. package/dist/embedded-app/static/184.475a9a99.chunk.js +0 -3
  64. package/dist/embedded-app/static/2440.c232dd8f.chunk.js +0 -3
  65. package/dist/embedded-app/static/4949.85095ea5.chunk.js.map +0 -1
  66. package/dist/embedded-app/static/5458.f6f5b0cd.chunk.js +0 -3
  67. package/dist/embedded-app/static/5837.13ae1bd8.chunk.js +0 -3
  68. package/dist/embedded-app/static/5837.13ae1bd8.chunk.js.map +0 -1
  69. package/dist/embedded-app/static/6051.f911be84.chunk.js +0 -4
  70. package/dist/embedded-app/static/732.4b93361d.chunk.js +0 -3
  71. package/dist/embedded-app/static/7560.107226bf.chunk.js +0 -3
  72. package/dist/embedded-app/static/9545.6d9d6f79.chunk.js +0 -3
  73. package/dist/embedded-app/static/9770.648fb0ea.chunk.js +0 -3
  74. package/dist/embedded-app/static/main.582cf8a9.js +0 -492
  75. package/dist/embedded-app/static/main.582cf8a9.js.map +0 -1
  76. package/dist/embedded-app/static/module-ajv.9873d8f6.js +0 -10
  77. package/dist/embedded-app/static/module-ajv.9873d8f6.js.map +0 -1
  78. package/dist/embedded-app/static/module-jss.df150ef8.js +0 -38
  79. package/dist/embedded-app/static/module-jss.df150ef8.js.map +0 -1
  80. package/dist/embedded-app/static/module-material-ui.9f0910ba.js +0 -51
  81. package/dist/embedded-app/static/module-material-ui.9f0910ba.js.map +0 -1
  82. package/dist/embedded-app/static/module-octokit.7ca45648.js +0 -5
  83. package/dist/embedded-app/static/module-octokit.7ca45648.js.map +0 -1
  84. package/dist/embedded-app/static/vendor.582cf8a9.js +0 -115
  85. package/dist/embedded-app/static/vendor.582cf8a9.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/options.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogPage/DefaultCatalogPage.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogPage/CatalogPage.tsx"],"names":["useCatalogPluginOptions","usePluginOptions","DefaultCatalogPage","props","columns","actions","initiallySelectedFilter","initialKind","tableOptions","useApi","orgName","configApiRef","getOptionalString","createComponentLink","useRouteRef","createComponentRouteRef","createButtonTitle","PageWithHeader","title","themeId","EntityListProvider","Content","ContentHeader","titleComponent","CatalogKindHeader","initialFilter","CreateButton","to","SupportButton","CatalogFilterLayout","EntityTypePicker","UserListPicker","EntityOwnerPicker","EntityLifecyclePicker","EntityTagPicker","EntityProcessingStatusPicker","CatalogTable","CatalogPage","useOutlet"],"mappings":"kVA0BO,MAAMA,EAA0B,K,EACrCC,MAAgB,EC6BX,SAASC,EAAmBC,EAAgC,CACjE,KAAM,CACJC,UACAC,UACAC,0BAA0B,QAC1BC,cAAc,YACdC,eAAe,CAAC,CAAC,EACfL,E,IAEFM,EADF,MAAMC,GACJD,G,EAAAA,MAAOE,IAAY,EAAEC,kBAAkB,mBAAmB,KAAC,MAA3DH,IAA2D,OAA3DA,EAA+D,YAC3DI,G,EAAsBC,MAAYC,IAAuB,EAEzD,CAAEC,mBAAiB,EAAKhB,EAAwB,EAEtD,O,EACE,OAACiB,KAAc,CAACC,MAAO,GAAGR,YAAmBS,QAAQ,O,YACnD,OAACC,KAAkB,C,YACjB,QAACC,KAAO,C,aACN,QAACC,KAAa,CACZC,gB,EAAgB,OAACC,IAAiB,CAACC,cAAelB,C,gBAElD,OAACmB,KAAY,CACXR,MAAOF,EACPW,GAAId,GAAuBA,EAAoB,C,MAEjD,OAACe,KAAa,C,SAAC,oC,SAEjB,QAACC,KAAmB,C,aAClB,QAACA,aAA2B,C,aAC1B,OAACC,KAAgB,K,EACjB,OAACC,KAAc,CAACN,cAAenB,C,MAC/B,OAAC0B,KAAiB,K,EAClB,OAACC,KAAqB,K,EACtB,OAACC,KAAe,K,EAChB,OAACC,KAA4B,G,OAE/B,OAACN,aAA2B,C,YAC1B,OAACO,IAAY,CACXhC,QAASA,EACTC,QAASA,EACTG,aAAcA,C,cAQ9B,CCjFO,SAAS6B,EAAYlC,EAAgC,CAG1D,O,EAFemC,MAAU,I,EAER,OAACpC,EAAkB,CAAE,GAAGC,C,EAC3C,C","file":"static/5837.13ae1bd8.chunk.js","sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { usePluginOptions } from '@backstage/core-plugin-api';\n\nexport type CatalogPluginOptions = {\n createButtonTitle: string;\n};\n\nexport type CatalogInputPluginOptions = {\n createButtonTitle: string;\n};\n\nexport const useCatalogPluginOptions = () =>\n usePluginOptions<CatalogPluginOptions>();\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n Content,\n ContentHeader,\n CreateButton,\n PageWithHeader,\n SupportButton,\n TableColumn,\n TableProps,\n} from '@backstage/core-components';\nimport { configApiRef, useApi, useRouteRef } from '@backstage/core-plugin-api';\nimport {\n CatalogFilterLayout,\n EntityLifecyclePicker,\n EntityListProvider,\n EntityProcessingStatusPicker,\n EntityOwnerPicker,\n EntityTagPicker,\n EntityTypePicker,\n UserListFilterKind,\n UserListPicker,\n} from '@backstage/plugin-catalog-react';\nimport React from 'react';\nimport { createComponentRouteRef } from '../../routes';\nimport { CatalogTable, CatalogTableRow } from '../CatalogTable';\nimport { CatalogKindHeader } from '../CatalogKindHeader';\nimport { useCatalogPluginOptions } from '../../options';\n\n/**\n * Props for root catalog pages.\n *\n * @public\n */\nexport interface DefaultCatalogPageProps {\n initiallySelectedFilter?: UserListFilterKind;\n columns?: TableColumn<CatalogTableRow>[];\n actions?: TableProps<CatalogTableRow>['actions'];\n initialKind?: string;\n tableOptions?: TableProps<CatalogTableRow>['options'];\n}\n\nexport function DefaultCatalogPage(props: DefaultCatalogPageProps) {\n const {\n columns,\n actions,\n initiallySelectedFilter = 'owned',\n initialKind = 'component',\n tableOptions = {},\n } = props;\n const orgName =\n useApi(configApiRef).getOptionalString('organization.name') ?? 'Backstage';\n const createComponentLink = useRouteRef(createComponentRouteRef);\n\n const { createButtonTitle } = useCatalogPluginOptions();\n\n return (\n <PageWithHeader title={`${orgName} Catalog`} themeId=\"home\">\n <EntityListProvider>\n <Content>\n <ContentHeader\n titleComponent={<CatalogKindHeader initialFilter={initialKind} />}\n >\n <CreateButton\n title={createButtonTitle}\n to={createComponentLink && createComponentLink()}\n />\n <SupportButton>All your software catalog entities</SupportButton>\n </ContentHeader>\n <CatalogFilterLayout>\n <CatalogFilterLayout.Filters>\n <EntityTypePicker />\n <UserListPicker initialFilter={initiallySelectedFilter} />\n <EntityOwnerPicker />\n <EntityLifecyclePicker />\n <EntityTagPicker />\n <EntityProcessingStatusPicker />\n </CatalogFilterLayout.Filters>\n <CatalogFilterLayout.Content>\n <CatalogTable\n columns={columns}\n actions={actions}\n tableOptions={tableOptions}\n />\n </CatalogFilterLayout.Content>\n </CatalogFilterLayout>\n </Content>\n </EntityListProvider>\n </PageWithHeader>\n );\n}\n","/*\n * Copyright 2021 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\nimport { useOutlet } from 'react-router';\nimport {\n DefaultCatalogPage,\n DefaultCatalogPageProps,\n} from './DefaultCatalogPage';\n\nexport function CatalogPage(props: DefaultCatalogPageProps) {\n const outlet = useOutlet();\n\n return outlet || <DefaultCatalogPage {...props} />;\n}\n"],"sourceRoot":""}
@@ -1,4 +0,0 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[6051],{76051:function(ue,Z,d){d.r(Z),d.d(Z,{RealLogViewer:function(){return ae}});var h=d(52322),g=d(2784),V=d(10289),y=d(61837),U=d(19353),W=d(7688),D=d(50166),G=d(4903);const L=(0,G.Z)(),b=/\n\r?/g,j=Object.fromEntries(Object.entries({1:e=>({...e,bold:!0}),3:e=>({...e,italic:!0}),4:e=>({...e,underline:!0}),22:({bold:e,...n})=>n,23:({italic:e,...n})=>n,24:({underline:e,...n})=>n,30:e=>({...e,foreground:"black"}),31:e=>({...e,foreground:"red"}),32:e=>({...e,foreground:"green"}),33:e=>({...e,foreground:"yellow"}),34:e=>({...e,foreground:"blue"}),35:e=>({...e,foreground:"magenta"}),36:e=>({...e,foreground:"cyan"}),37:e=>({...e,foreground:"white"}),39:({foreground:e,...n})=>n,90:e=>({...e,foreground:"grey"}),40:e=>({...e,background:"black"}),41:e=>({...e,background:"red"}),42:e=>({...e,background:"green"}),43:e=>({...e,background:"yellow"}),44:e=>({...e,background:"blue"}),45:e=>({...e,background:"magenta"}),46:e=>({...e,background:"cyan"}),47:e=>({...e,background:"white"}),49:({background:e,...n})=>n}).map(([e,n])=>[`\x1B[${e}m`,n]));class C{lastChunk(){return this.chunks[this.chunks.length-1]}replaceLastChunk(n){n&&(this.chunks.splice(this.chunks.length-1,1,...n),this.text=this.chunks.map(t=>t.text).join("").toLocaleLowerCase("en-US"))}constructor(n=1,t=[]){this.lineNumber=n,this.chunks=t,this.text=t.map(s=>s.text).join("").toLocaleLowerCase("en-US")}}class P{process(n){if(this.text===n)return this.lines;if(n.startsWith(this.text)){var t;const r=this.lines.length>0?this.lines.length-1:0;var s;const i=(s=this.lines[r])!==null&&s!==void 0?s:new C,c=i.lastChunk();var o;const l=this.processLines(((o=c==null?void 0:c.text)!==null&&o!==void 0?o:"")+n.slice(this.text.length),c==null?void 0:c.modifiers,i==null?void 0:i.lineNumber);i.replaceLastChunk((t=l[0])===null||t===void 0?void 0:t.chunks),this.lines[r]=i,this.lines.push(...l.slice(1))}else this.lines=this.processLines(n);return this.text=n,this.lines}constructor(){this.text="",this.lines=[],this.processLines=(n,t={},s=1)=>{const o=[];let r=t,i=s,c=0;for(b.lastIndex=0;;){const u=b.exec(n);if(!u){const m=this.processText(n.slice(c),r);return o.push(new C(i,m)),o}const a=n.slice(c,u.index);c=u.index+u[0].length;const f=this.processText(a,r);o.push(new C(i,f));var l;r=(l=f[f.length-1].modifiers)!==null&&l!==void 0?l:r,i+=1}},this.processText=(n,t)=>{const s=[];let o=t,r=0;for(L.lastIndex=0;;){const i=L.exec(n);if(!i)return s.push({text:n.slice(r),modifiers:o}),s;const c=n.slice(r,i.index);s.push({text:c,modifiers:o}),r=i.index+i[0].length,o=this.processCode(i[0],o)}},this.processCode=(n,t)=>{var s,o;return(o=(s=j[n])===null||s===void 0?void 0:s.call(j,t))!==null&&o!==void 0?o:t}}}var $=d(79692),I=d(41128),k=d(31754),B=d(66054),R=d(81463),F=d(34505),M=d(57186),N=d(32720),T=d(92901),A=d(45410);const E=40,w=(0,$.Z)(e=>({root:{background:e.palette.background.paper},header:{height:E,display:"flex",alignItems:"center",justifyContent:"flex-end"},log:{fontFamily:'"Monaco", monospace',fontSize:e.typography.pxToRem(12)},line:{position:"relative",whiteSpace:"pre","&:hover":{background:e.palette.action.hover}},lineSelected:{background:e.palette.action.selected,"&:hover":{background:e.palette.action.selected}},lineCopyButton:{position:"absolute",paddingTop:0,paddingBottom:0},lineNumber:{display:"inline-block",textAlign:"end",width:60,marginRight:e.spacing(1),cursor:"pointer"},textHighlight:{background:(0,I.Fq)(e.palette.info.main,.15)},textSelectedHighlight:{background:(0,I.Fq)(e.palette.info.main,.4)},modifierBold:{fontWeight:e.typography.fontWeightBold},modifierItalic:{fontStyle:"italic"},modifierUnderline:{textDecoration:"underline"},modifierForegroundBlack:{color:k.Z.black},modifierForegroundRed:{color:B.Z[500]},modifierForegroundGreen:{color:R.Z[500]},modifierForegroundYellow:{color:F.Z[500]},modifierForegroundBlue:{color:M.Z[500]},modifierForegroundMagenta:{color:N.Z[500]},modifierForegroundCyan:{color:T.Z[500]},modifierForegroundWhite:{color:k.Z.white},modifierForegroundGrey:{color:A.Z[500]},modifierBackgroundBlack:{background:k.Z.black},modifierBackgroundRed:{background:B.Z[500]},modifierBackgroundGreen:{background:R.Z[500]},modifierBackgroundYellow:{background:F.Z[500]},modifierBackgroundBlue:{background:M.Z[500]},modifierBackgroundMagenta:{background:N.Z[500]},modifierBackgroundCyan:{background:T.Z[500]},modifierBackgroundWhite:{background:k.Z.white},modifierBackgroundGrey:{background:A.Z[500]}}),{name:"BackstageLogViewer"});var Y=d(72779),z=d.n(Y),J=d(74600),K=d.n(J);function Q(e,n){const t=new Array;if(n.bold&&t.push(e.modifierBold),n.italic&&t.push(e.modifierItalic),n.underline&&t.push(e.modifierUnderline),n.foreground){const s=`modifierForeground${K()(n.foreground)}`;t.push(e[s])}if(n.background){const s=`modifierBackground${K()(n.background)}`;t.push(e[s])}return t.length>0?t.join(" "):void 0}function X(e,n){if(!n||!e.includes(n))return;const t=new Array;let s=0;for(;;){const o=e.indexOf(n,s);if(o===-1)break;const r=o+n.length;t.push({start:o,end:r}),s=r}return t}function q(e,n){const t=X(e.text,n);if(!t)return e.chunks;const s=new Array;let o=0,r=0,i=t[r];for(const c of e.chunks){const{text:l,modifiers:u}=c;if(!i||o+l.length<i.start){s.push(c),o+=l.length;continue}let a=0;for(;i;){const m=Math.max(i.start-o,0);if(m>l.length)break;const v=Math.min(i.end-o,l.length);if(m>a&&s.push({text:l.slice(a,m),modifiers:u}),v>m&&s.push({modifiers:u,highlight:r,text:l.slice(m,v)}),a=v,i.end-o===v)r+=1,i=t[r];else break}a<l.length&&s.push({text:l.slice(a),modifiers:u}),o+=l.length}return s}function _({line:e,classes:n,searchText:t,highlightResultIndex:s}){const o=(0,g.useMemo)(()=>q(e,t),[e,t]),r=(0,g.useMemo)(()=>o.map(({text:i,modifiers:c,highlight:l},u)=>(0,h.jsx)("span",{className:z()(Q(n,c),l!==void 0&&(l===s?n.textSelectedHighlight:n.textHighlight)),children:i},u)),[o,s,n]);return(0,h.jsx)(h.Fragment,{children:r})}var ee=d(86619),ne=d(90436),te=d(48049),oe=d(51209),H=d(36444);function se(e){const{resultCount:n,resultIndexStep:t,toggleShouldFilter:s}=e;var o;const r=(o=e.resultIndex)!==null&&o!==void 0?o:0,i=c=>{c.key==="Enter"&&(c.metaKey||c.ctrlKey||c.altKey?s():t(c.shiftKey))};return(0,h.jsxs)(h.Fragment,{children:[n!==void 0&&(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(y.Z,{size:"small",onClick:()=>t(!0),children:(0,h.jsx)(te.Z,{})}),(0,h.jsxs)(ne.Z,{children:[Math.min(r+1,n),"/",n]}),(0,h.jsx)(y.Z,{size:"small",onClick:()=>t(),children:(0,h.jsx)(oe.Z,{})})]}),(0,h.jsx)(ee.Z,{size:"small",variant:"standard",placeholder:"Search",value:e.searchInput,onKeyPress:i,onChange:c=>e.setSearchInput(c.target.value)}),(0,h.jsx)(y.Z,{size:"small",onClick:s,children:e.shouldFilter?(0,h.jsx)(H.Z,{color:"primary"}):(0,h.jsx)(H.Z,{color:"disabled"})})]})}var re=d(96686);function ie(e,n){if(!n)return{lines:e};const t=[],s=[];for(const o of e)if(o.text.includes(n)){t.push(o);let r=0,i=0;for(;;){const c=o.text.indexOf(n,r);if(c===-1)break;s.push({lineNumber:o.lineNumber,lineIndex:i++}),r=c+n.length}}return{lines:t,results:s}}function le(e){var n;const[t,s]=(0,g.useState)(""),o=t.toLocaleLowerCase("en-US"),[r,i]=(0,g.useState)(0),[c,l]=(0,re.O)(!1),u=(0,g.useMemo)(()=>ie(e,o),[e,o]),a=u.results?u.results[Math.min(r,u.results.length-1)]:void 0,f=(n=u.results)===null||n===void 0?void 0:n.length,m=v=>{if(v){if(f!==void 0){const x=Math.min(r-1,f-2);i(x<0?f-1:x)}}else if(f!==void 0){const x=r+1;i(x>=f?0:x)}};return{lines:c?u.lines:e,searchText:o,searchInput:t,setSearchInput:s,shouldFilter:c,toggleShouldFilter:l,resultCount:f,resultIndex:r,resultIndexStep:m,resultLine:a==null?void 0:a.lineNumber,resultLineIndex:a==null?void 0:a.lineIndex}}var O=d(25248),ce=d(95074);function de(e){const n=(0,O.h_)(O.VE),[t,s]=(0,g.useState)(),o=t?Math.min(t.start,t.end):void 0,r=t?Math.max(t.start,t.end):void 0,[{error:i},c]=(0,ce.Z)();return(0,g.useEffect)(()=>{i&&n.post(i)},[i,n]),{shouldShowButton(l){return o===l||r===l},isSelected(l){return t?o<=l&&l<=r:!1},setSelection(l,u){s(u?a=>a?{start:a.start,end:l}:{start:l,end:l}:a=>(a==null?void 0:a.start)===l&&(a==null?void 0:a.end)===l?void 0:{start:l,end:l})},copySelection(){if(t){const l=e.slice(Math.min(t.start,t.end)-1,Math.max(t.start,t.end)).map(u=>u.chunks.map(a=>a.text).join("")).join(`
2
- `);c(l),s(void 0)}}}}function ae(e){const n=w({classes:e.classes}),t=(0,g.useRef)(null),o=(0,g.useMemo)(()=>new P,[]).process(e.text),r=le(o),i=de(o),c=(0,V.TH)();(0,g.useEffect)(()=>{r.resultLine!==void 0&&t.current&&t.current.scrollToItem(r.resultLine-1,"center")},[r.resultLine]),(0,g.useEffect)(()=>{if(c.hash){const u=parseInt(c.hash.replace(/\D/g,""),10);i.setSelection(u,!1)}},[]);const l=(u,a)=>{i.setSelection(u,a.shiftKey)};return(0,h.jsx)(W.Z,{children:({height:u,width:a})=>(0,h.jsxs)("div",{style:{width:a,height:u},className:n.root,children:[(0,h.jsx)("div",{className:n.header,children:(0,h.jsx)(se,{...r})}),(0,h.jsx)(D.t7,{ref:t,className:n.log,height:u-E,width:a,itemData:r.lines,itemSize:20,itemCount:r.lines.length,children:({index:f,style:m,data:v})=>{const x=v[f],{lineNumber:p}=x;return(0,h.jsxs)("div",{style:{...m},className:z()(n.line,{[n.lineSelected]:i.isSelected(p)}),children:[i.shouldShowButton(p)&&(0,h.jsx)(y.Z,{"data-testid":"copy-button",size:"small",className:n.lineCopyButton,onClick:()=>i.copySelection(),children:(0,h.jsx)(U.Z,{fontSize:"inherit"})}),(0,h.jsx)("a",{role:"row",target:"_self",href:`#line-${p}`,className:n.lineNumber,onClick:S=>l(p,S),onKeyPress:S=>l(p,S),children:p}),(0,h.jsx)(_,{line:x,classes:n,searchText:r.searchText,highlightResultIndex:r.resultLine===p?r.resultLineIndex:void 0})]})}})]})})}}}]);})();
3
-
4
- //# sourceMappingURL=6051.f911be84.chunk.js.map
@@ -1,3 +0,0 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[732],{732:function(b,r,e){e.r(r),e.d(r,{RelatedEntitiesCard:function(){return l},asComponentEntities:function(){return y},asResourceEntities:function(){return C},asSystemEntities:function(){return k},componentEntityColumns:function(){return m},componentEntityHelpLink:function(){return d},resourceEntityColumns:function(){return p},resourceEntityHelpLink:function(){return f},systemEntityColumns:function(){return E},systemEntityHelpLink:function(){return h}});var n=e(52322),u=e(90436),t=e(46285),M=e(2784),s=e(15018);function l(o){const{variant:c="gridItem",title:i,columns:g,entityKind:v,relationType:x,emptyMessage:j,emptyHelpLink:L,asRenderableEntities:R}=o,{entity:H}=(0,t.X2)(),{entities:S,loading:K,error:a}=(0,t.eK)(H,{type:x,kind:v});return K?(0,n.jsx)(s.rJ,{variant:c,title:i,children:(0,n.jsx)(s.Ex,{})}):a?(0,n.jsx)(s.rJ,{variant:c,title:i,children:(0,n.jsx)(s.Gk,{error:a})}):(0,n.jsx)(t.u3,{title:i,variant:c,emptyContent:(0,n.jsxs)("div",{style:{textAlign:"center"},children:[(0,n.jsx)(u.Z,{variant:"body1",children:j}),(0,n.jsx)(u.Z,{variant:"body2",children:(0,n.jsx)(s.rU,{to:L,children:"Learn how to change this."})})]}),columns:g,entities:R(S||[])})}const m=[t.u3.columns.createEntityRefColumn({defaultKind:"component"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createSpecTypeColumn(),t.u3.columns.createSpecLifecycleColumn(),t.u3.columns.createMetadataDescriptionColumn()],d="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",y=o=>o,p=[t.u3.columns.createEntityRefColumn({defaultKind:"resource"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createSpecTypeColumn(),t.u3.columns.createSpecLifecycleColumn(),t.u3.columns.createMetadataDescriptionColumn()],f="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",C=o=>o,E=[t.u3.columns.createEntityRefColumn({defaultKind:"system"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createMetadataDescriptionColumn()],h="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",k=o=>o}}]);})();
2
-
3
- //# sourceMappingURL=732.4b93361d.chunk.js.map
@@ -1,3 +0,0 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[7560],{27560:function(g,D,e){e.r(D),e.d(D,{TechDocsCustomHome:function(){return v}});var t=e(52322),C=e(2784),p=e(64279),O=e(79692),d=e(46285),j=e(68435),x=e(85478),_=e(42081),n=e(15018),M=e(25248);const f={DocsTable:j.H,DocsCardGrid:x.f},T=({config:s,entities:i,index:r})=>{const E=(0,O.Z)({panelContainer:{marginBottom:"2rem",...s.panelCSS?s.panelCSS:{}}})(),{loading:c,isOwnedEntity:u}=(0,d.ZW)(),l=f[s.panelType],h=i.filter(a=>s.filterPredicate==="ownedByUser"?c?!1:u(a):typeof s.filterPredicate=="function"&&s.filterPredicate(a));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.yW,{title:s.title,description:s.description,children:r===0?(0,t.jsx)(n.qt,{children:"Discover documentation in your ecosystem."}):null}),(0,t.jsx)("div",{className:E.panelContainer,children:(0,t.jsx)(l,{"data-testid":"techdocs-custom-panel",entities:h})})]})},v=s=>{const{tabsConfig:i}=s,[r,P]=(0,C.useState)(0),E=(0,M.h_)(d.Ah),{value:c,loading:u,error:l}=(0,p.default)(async()=>(await E.getEntities({filter:{"metadata.annotations.backstage.io/techdocs-ref":d.n3},fields:["apiVersion","kind","metadata","relations","spec.owner","spec.type"]})).items.filter(o=>{var m;return!!(!((m=o.metadata.annotations)===null||m===void 0)&&m["backstage.io/techdocs-ref"])})),h=i[r];return u?(0,t.jsx)(_.j,{children:(0,t.jsx)(n.VY,{children:(0,t.jsx)(n.Ex,{})})}):l?(0,t.jsx)(_.j,{children:(0,t.jsx)(n.VY,{children:(0,t.jsx)(n.GB,{severity:"error",title:"Could not load available documentation.",children:(0,t.jsx)(n.Oi,{language:"text",text:l.toString()})})})}):(0,t.jsxs)(_.j,{children:[(0,t.jsx)(n.aR,{selectedIndex:r,onChange:a=>P(a),tabs:i.map(({label:a},o)=>({id:o.toString(),label:a}))}),(0,t.jsx)(n.VY,{"data-testid":"techdocs-content",children:h.panels.map((a,o)=>(0,t.jsx)(T,{config:a,entities:c||[],index:o},o))})]})}}}]);})();
2
-
3
- //# sourceMappingURL=7560.107226bf.chunk.js.map
@@ -1,3 +0,0 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[9545,732],{19545:function(y,i,n){n.r(i),n.d(i,{DependsOnComponentsCard:function(){return o}});var e=n(52322),r=n(25271),t=n(2784),c=n(732);function o(a){const{variant:u="gridItem",title:l="Depends on components"}=a;return(0,e.jsx)(c.RelatedEntitiesCard,{variant:u,title:l,entityKind:"Component",relationType:r.nP,columns:c.componentEntityColumns,emptyMessage:"No component is a dependency of this component",emptyHelpLink:c.componentEntityHelpLink,asRenderableEntities:c.asComponentEntities})}},732:function(y,i,n){n.r(i),n.d(i,{RelatedEntitiesCard:function(){return a},asComponentEntities:function(){return f},asResourceEntities:function(){return h},asSystemEntities:function(){return j},componentEntityColumns:function(){return u},componentEntityHelpLink:function(){return l},resourceEntityColumns:function(){return C},resourceEntityHelpLink:function(){return E},systemEntityColumns:function(){return v},systemEntityHelpLink:function(){return g}});var e=n(52322),r=n(90436),t=n(46285),c=n(2784),o=n(15018);function a(s){const{variant:m="gridItem",title:d,columns:x,entityKind:L,relationType:R,emptyMessage:k,emptyHelpLink:H,asRenderableEntities:D}=s,{entity:K}=(0,t.X2)(),{entities:S,loading:M,error:p}=(0,t.eK)(K,{type:R,kind:L});return M?(0,e.jsx)(o.rJ,{variant:m,title:d,children:(0,e.jsx)(o.Ex,{})}):p?(0,e.jsx)(o.rJ,{variant:m,title:d,children:(0,e.jsx)(o.Gk,{error:p})}):(0,e.jsx)(t.u3,{title:d,variant:m,emptyContent:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(r.Z,{variant:"body1",children:k}),(0,e.jsx)(r.Z,{variant:"body2",children:(0,e.jsx)(o.rU,{to:H,children:"Learn how to change this."})})]}),columns:x,entities:D(S||[])})}const u=[t.u3.columns.createEntityRefColumn({defaultKind:"component"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createSpecTypeColumn(),t.u3.columns.createSpecLifecycleColumn(),t.u3.columns.createMetadataDescriptionColumn()],l="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",f=s=>s,C=[t.u3.columns.createEntityRefColumn({defaultKind:"resource"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createSpecTypeColumn(),t.u3.columns.createSpecLifecycleColumn(),t.u3.columns.createMetadataDescriptionColumn()],E="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",h=s=>s,v=[t.u3.columns.createEntityRefColumn({defaultKind:"system"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createMetadataDescriptionColumn()],g="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",j=s=>s}}]);})();
2
-
3
- //# sourceMappingURL=9545.6d9d6f79.chunk.js.map
@@ -1,3 +0,0 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[9770,732],{79770:function(y,r,n){n.r(r),n.d(r,{HasResourcesCard:function(){return s}});var e=n(52322),c=n(25271),t=n(2784),i=n(732);function s(u){const{variant:a="gridItem"}=u;return(0,e.jsx)(i.RelatedEntitiesCard,{variant:a,title:"Has resources",entityKind:"Resource",relationType:c.aS,columns:i.resourceEntityColumns,asRenderableEntities:i.asResourceEntities,emptyMessage:"No resource is part of this system",emptyHelpLink:i.resourceEntityHelpLink})}},732:function(y,r,n){n.r(r),n.d(r,{RelatedEntitiesCard:function(){return u},asComponentEntities:function(){return f},asResourceEntities:function(){return h},asSystemEntities:function(){return g},componentEntityColumns:function(){return a},componentEntityHelpLink:function(){return p},resourceEntityColumns:function(){return C},resourceEntityHelpLink:function(){return E},systemEntityColumns:function(){return v},systemEntityHelpLink:function(){return R}});var e=n(52322),c=n(90436),t=n(46285),i=n(2784),s=n(15018);function u(o){const{variant:l="gridItem",title:m,columns:j,entityKind:x,relationType:H,emptyMessage:L,emptyHelpLink:k,asRenderableEntities:S}=o,{entity:K}=(0,t.X2)(),{entities:M,loading:T,error:d}=(0,t.eK)(K,{type:H,kind:x});return T?(0,e.jsx)(s.rJ,{variant:l,title:m,children:(0,e.jsx)(s.Ex,{})}):d?(0,e.jsx)(s.rJ,{variant:l,title:m,children:(0,e.jsx)(s.Gk,{error:d})}):(0,e.jsx)(t.u3,{title:m,variant:l,emptyContent:(0,e.jsxs)("div",{style:{textAlign:"center"},children:[(0,e.jsx)(c.Z,{variant:"body1",children:L}),(0,e.jsx)(c.Z,{variant:"body2",children:(0,e.jsx)(s.rU,{to:k,children:"Learn how to change this."})})]}),columns:j,entities:S(M||[])})}const a=[t.u3.columns.createEntityRefColumn({defaultKind:"component"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createSpecTypeColumn(),t.u3.columns.createSpecLifecycleColumn(),t.u3.columns.createMetadataDescriptionColumn()],p="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",f=o=>o,C=[t.u3.columns.createEntityRefColumn({defaultKind:"resource"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createSpecTypeColumn(),t.u3.columns.createSpecLifecycleColumn(),t.u3.columns.createMetadataDescriptionColumn()],E="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",h=o=>o,v=[t.u3.columns.createEntityRefColumn({defaultKind:"system"}),t.u3.columns.createOwnerColumn(),t.u3.columns.createMetadataDescriptionColumn()],R="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",g=o=>o}}]);})();
2
-
3
- //# sourceMappingURL=9770.648fb0ea.chunk.js.map