@techdocs/cli 1.4.1-next.0 → 1.4.1-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.
Files changed (56) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/{index/PublisherConfig-9dfc07ee.cjs.js → PublisherConfig-a2649fb7.cjs.js} +1 -1
  3. package/dist/cjs/PublisherConfig-a2649fb7.cjs.js.map +1 -0
  4. package/dist/cjs/{index/generate-8722d4c2.cjs.js → generate-d9c4c0d9.cjs.js} +2 -2
  5. package/dist/cjs/generate-d9c4c0d9.cjs.js.map +1 -0
  6. package/dist/cjs/{index/migrate-5312e76c.cjs.js → migrate-0697fdb4.cjs.js} +3 -3
  7. package/dist/cjs/migrate-0697fdb4.cjs.js.map +1 -0
  8. package/dist/cjs/{index/mkdocs-b897f254.cjs.js → mkdocs-582c42fd.cjs.js} +3 -3
  9. package/dist/cjs/mkdocs-582c42fd.cjs.js.map +1 -0
  10. package/dist/cjs/{index/mkdocsServer-db7109fb.cjs.js → mkdocsServer-99ec8af2.cjs.js} +1 -1
  11. package/dist/cjs/mkdocsServer-99ec8af2.cjs.js.map +1 -0
  12. package/dist/cjs/{index/publish-f0f203ef.cjs.js → publish-ac098b56.cjs.js} +3 -3
  13. package/dist/cjs/publish-ac098b56.cjs.js.map +1 -0
  14. package/dist/cjs/{index/serve-8c722cc8.cjs.js → serve-461aaf60.cjs.js} +3 -3
  15. package/dist/cjs/serve-461aaf60.cjs.js.map +1 -0
  16. package/dist/cjs/{index/utility-2edd5bff.cjs.js → utility-3c0df5a9.cjs.js} +1 -1
  17. package/dist/cjs/utility-3c0df5a9.cjs.js.map +1 -0
  18. package/dist/embedded-app/index.html +1 -1
  19. package/dist/embedded-app/static/{6051.18a39235.chunk.js → 6051.002ec2c4.chunk.js} +2 -2
  20. package/dist/embedded-app/static/{6051.18a39235.chunk.js.map → 6051.002ec2c4.chunk.js.map} +1 -1
  21. package/dist/embedded-app/static/{8951.4ffeac5f.chunk.js → 8951.dd51135b.chunk.js} +2 -2
  22. package/dist/embedded-app/static/{8951.4ffeac5f.chunk.js.map → 8951.dd51135b.chunk.js.map} +1 -1
  23. package/dist/embedded-app/static/{9323.a4a386cd.chunk.js → 9323.6577088c.chunk.js} +2 -2
  24. package/dist/embedded-app/static/{9323.a4a386cd.chunk.js.map → 9323.6577088c.chunk.js.map} +1 -1
  25. package/dist/embedded-app/static/main.3a433f5b.js +508 -0
  26. package/dist/embedded-app/static/main.3a433f5b.js.map +1 -0
  27. package/dist/embedded-app/static/module-react-router-dom.87e15add.js +21 -0
  28. package/dist/embedded-app/static/module-react-router-dom.87e15add.js.map +1 -0
  29. package/dist/embedded-app/static/module-react-router.3fa3d41e.js +21 -0
  30. package/dist/embedded-app/static/module-react-router.3fa3d41e.js.map +1 -0
  31. package/dist/embedded-app/static/module-zod.49079951.js +3 -0
  32. package/dist/embedded-app/static/module-zod.49079951.js.map +1 -0
  33. package/dist/embedded-app/static/{react-syntax-highlighter_languages_highlight_java.0c380b2f.chunk.js → react-syntax-highlighter_languages_highlight_java.a244ed31.chunk.js} +2 -2
  34. package/dist/embedded-app/static/{react-syntax-highlighter_languages_highlight_java.0c380b2f.chunk.js.map → react-syntax-highlighter_languages_highlight_java.a244ed31.chunk.js.map} +1 -1
  35. package/dist/embedded-app/static/{runtime.d717207e.js → runtime.3a433f5b.js} +2 -2
  36. package/dist/embedded-app/static/{runtime.d717207e.js.map → runtime.3a433f5b.js.map} +1 -1
  37. package/dist/embedded-app/static/{vendor.d717207e.js → vendor.3a433f5b.js} +83 -83
  38. package/dist/embedded-app/static/vendor.3a433f5b.js.map +1 -0
  39. package/dist/index.cjs.js +6 -6
  40. package/dist/index.cjs.js.map +1 -1
  41. package/package.json +4 -4
  42. package/dist/cjs/index/PublisherConfig-9dfc07ee.cjs.js.map +0 -1
  43. package/dist/cjs/index/generate-8722d4c2.cjs.js.map +0 -1
  44. package/dist/cjs/index/migrate-5312e76c.cjs.js.map +0 -1
  45. package/dist/cjs/index/mkdocs-b897f254.cjs.js.map +0 -1
  46. package/dist/cjs/index/mkdocsServer-db7109fb.cjs.js.map +0 -1
  47. package/dist/cjs/index/publish-f0f203ef.cjs.js.map +0 -1
  48. package/dist/cjs/index/serve-8c722cc8.cjs.js.map +0 -1
  49. package/dist/cjs/index/utility-2edd5bff.cjs.js.map +0 -1
  50. package/dist/embedded-app/static/main.d717207e.js +0 -503
  51. package/dist/embedded-app/static/main.d717207e.js.map +0 -1
  52. package/dist/embedded-app/static/module-react-router-dom.34e67991.js +0 -30
  53. package/dist/embedded-app/static/module-react-router-dom.34e67991.js.map +0 -1
  54. package/dist/embedded-app/static/module-zod.cdb212b6.js +0 -3
  55. package/dist/embedded-app/static/module-zod.cdb212b6.js.map +0 -1
  56. package/dist/embedded-app/static/vendor.d717207e.js.map +0 -1
@@ -1,3 +1,3 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8951],{78951:function(j,o,t){t.r(o),t.d(o,{CatalogEntityPage:function(){return E}});var r=t(52322),v=t(2784),a=t(79635),e=t(40303),n=t(60871),y=t(77446);const m=()=>{const{kind:c,namespace:i,name:s}=(0,n.Oi)(e.wi),d=(0,a.s0)(),l=(0,n.h_)(n.VE),u=(0,n.h_)(e.Ah),{value:h,error:f,loading:g,retry:p}=(0,y.Z)(()=>u.getEntityByRef({kind:c,namespace:i,name:s}),[u,c,i,s]);return(0,v.useEffect)(()=>{s||(l.post(new Error("No name provided!")),d("/"))},[l,d,f,g,h,s]),{entity:h,loading:g,error:f,refresh:p}};function E(){return(0,r.jsx)(e.h$,{...m(),children:(0,r.jsx)(a.j3,{})})}}}]);})();
1
+ "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8951],{78951:function(j,o,t){t.r(o),t.d(o,{CatalogEntityPage:function(){return E}});var r=t(52322),v=t(2784),a=t(73557),e=t(40303),n=t(60871),y=t(77446);const m=()=>{const{kind:c,namespace:i,name:s}=(0,n.Oi)(e.wi),d=(0,a.s0)(),l=(0,n.h_)(n.VE),u=(0,n.h_)(e.Ah),{value:h,error:f,loading:g,retry:p}=(0,y.Z)(()=>u.getEntityByRef({kind:c,namespace:i,name:s}),[u,c,i,s]);return(0,v.useEffect)(()=>{s||(l.post(new Error("No name provided!")),d("/"))},[l,d,f,g,h,s]),{entity:h,loading:g,error:f,refresh:p}};function E(){return(0,r.jsx)(e.h$,{...m(),children:(0,r.jsx)(a.j3,{})})}}}]);})();
2
2
 
3
- //# sourceMappingURL=8951.4ffeac5f.chunk.js.map
3
+ //# sourceMappingURL=8951.dd51135b.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/8951.4ffeac5f.chunk.js","mappings":"+QA8BO,MAAMA,EAAmB,IAA2B,CACzD,KAAM,CAAEC,KAAAA,EAAMC,UAAAA,EAAWC,KAAAA,CAAK,KAAIC,EAAAA,IAAkBC,EAAAA,EAAcA,EAC5DC,KAAWC,EAAAA,IAAY,EACvBC,KAAWC,EAAAA,IAAOC,EAAAA,EAAWA,EAC7BC,KAAaF,EAAAA,IAAOG,EAAAA,EAAaA,EAEjC,CACJC,MAAOC,EACPC,MAAAA,EACAC,QAAAA,EACAC,MAAOC,CAAO,KACZC,EAAAA,GACF,IAAMR,EAAWS,eAAe,CAAEnB,KAAAA,EAAMC,UAAAA,EAAWC,KAAAA,CAAK,CAAC,EACzD,CAACQ,EAAYV,EAAMC,EAAWC,C,CAAK,EAGrCkB,SAAAA,EAAAA,WAAU,IAAM,CACTlB,IACHK,EAASc,KAAK,IAAIC,MAAM,mBAAmB,CAAC,EAC5CjB,EAAS,GAAG,EAEhB,EAAG,CAACE,EAAUF,EAAUS,EAAOC,EAASF,EAAQX,C,CAAK,EAE9C,CAAEW,OAAAA,EAAQE,QAAAA,EAASD,MAAAA,EAAOG,QAAAA,CAAQ,CAC3C,EChCO,SAASM,GAAoB,CAClC,SACE,OAACC,EAAAA,GAAmBA,CAAE,GAAGzB,EAAiB,E,YACxC,OAAC0B,EAAAA,GAAMA,CAAAA,CAAAA,C,EAGb,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogEntityPage/useEntityFromUrl.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogEntityPage/CatalogEntityPage.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 errorApiRef,\n useApi,\n useRouteRefParams,\n} from '@backstage/core-plugin-api';\nimport {\n catalogApiRef,\n EntityLoadingStatus,\n entityRouteRef,\n} from '@backstage/plugin-catalog-react';\nimport { useEffect } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport useAsyncRetry from 'react-use/lib/useAsyncRetry';\n\nexport const useEntityFromUrl = (): EntityLoadingStatus => {\n const { kind, namespace, name } = useRouteRefParams(entityRouteRef);\n const navigate = useNavigate();\n const errorApi = useApi(errorApiRef);\n const catalogApi = useApi(catalogApiRef);\n\n const {\n value: entity,\n error,\n loading,\n retry: refresh,\n } = useAsyncRetry(\n () => catalogApi.getEntityByRef({ kind, namespace, name }),\n [catalogApi, kind, namespace, name],\n );\n\n useEffect(() => {\n if (!name) {\n errorApi.post(new Error('No name provided!'));\n navigate('/');\n }\n }, [errorApi, navigate, error, loading, entity, name]);\n\n return { entity, loading, error, refresh };\n};\n","/*\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 React from 'react';\nimport { Outlet } from 'react-router-dom';\nimport { AsyncEntityProvider } from '@backstage/plugin-catalog-react';\nimport { useEntityFromUrl } from './useEntityFromUrl';\n\n/** @public */\nexport function CatalogEntityPage() {\n return (\n <AsyncEntityProvider {...useEntityFromUrl()}>\n <Outlet />\n </AsyncEntityProvider>\n );\n}\n"],"names":["useEntityFromUrl","kind","namespace","name","useRouteRefParams","entityRouteRef","navigate","useNavigate","errorApi","useApi","errorApiRef","catalogApi","catalogApiRef","value","entity","error","loading","retry","refresh","useAsyncRetry","getEntityByRef","useEffect","post","Error","CatalogEntityPage","AsyncEntityProvider","Outlet"],"sourceRoot":""}
1
+ {"version":3,"file":"static/8951.dd51135b.chunk.js","mappings":"+QA8BO,MAAMA,EAAmB,IAA2B,CACzD,KAAM,CAAEC,KAAAA,EAAMC,UAAAA,EAAWC,KAAAA,CAAK,KAAIC,EAAAA,IAAkBC,EAAAA,EAAcA,EAC5DC,KAAWC,EAAAA,IAAY,EACvBC,KAAWC,EAAAA,IAAOC,EAAAA,EAAWA,EAC7BC,KAAaF,EAAAA,IAAOG,EAAAA,EAAaA,EAEjC,CACJC,MAAOC,EACPC,MAAAA,EACAC,QAAAA,EACAC,MAAOC,CAAO,KACZC,EAAAA,GACF,IAAMR,EAAWS,eAAe,CAAEnB,KAAAA,EAAMC,UAAAA,EAAWC,KAAAA,CAAK,CAAC,EACzD,CAACQ,EAAYV,EAAMC,EAAWC,C,CAAK,EAGrCkB,SAAAA,EAAAA,WAAU,IAAM,CACTlB,IACHK,EAASc,KAAK,IAAIC,MAAM,mBAAmB,CAAC,EAC5CjB,EAAS,GAAG,EAEhB,EAAG,CAACE,EAAUF,EAAUS,EAAOC,EAASF,EAAQX,C,CAAK,EAE9C,CAAEW,OAAAA,EAAQE,QAAAA,EAASD,MAAAA,EAAOG,QAAAA,CAAQ,CAC3C,EChCO,SAASM,GAAoB,CAClC,SACE,OAACC,EAAAA,GAAmBA,CAAE,GAAGzB,EAAiB,E,YACxC,OAAC0B,EAAAA,GAAMA,CAAAA,CAAAA,C,EAGb,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogEntityPage/useEntityFromUrl.ts","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogEntityPage/CatalogEntityPage.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 errorApiRef,\n useApi,\n useRouteRefParams,\n} from '@backstage/core-plugin-api';\nimport {\n catalogApiRef,\n EntityLoadingStatus,\n entityRouteRef,\n} from '@backstage/plugin-catalog-react';\nimport { useEffect } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport useAsyncRetry from 'react-use/lib/useAsyncRetry';\n\nexport const useEntityFromUrl = (): EntityLoadingStatus => {\n const { kind, namespace, name } = useRouteRefParams(entityRouteRef);\n const navigate = useNavigate();\n const errorApi = useApi(errorApiRef);\n const catalogApi = useApi(catalogApiRef);\n\n const {\n value: entity,\n error,\n loading,\n retry: refresh,\n } = useAsyncRetry(\n () => catalogApi.getEntityByRef({ kind, namespace, name }),\n [catalogApi, kind, namespace, name],\n );\n\n useEffect(() => {\n if (!name) {\n errorApi.post(new Error('No name provided!'));\n navigate('/');\n }\n }, [errorApi, navigate, error, loading, entity, name]);\n\n return { entity, loading, error, refresh };\n};\n","/*\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 React from 'react';\nimport { Outlet } from 'react-router-dom';\nimport { AsyncEntityProvider } from '@backstage/plugin-catalog-react';\nimport { useEntityFromUrl } from './useEntityFromUrl';\n\n/** @public */\nexport function CatalogEntityPage() {\n return (\n <AsyncEntityProvider {...useEntityFromUrl()}>\n <Outlet />\n </AsyncEntityProvider>\n );\n}\n"],"names":["useEntityFromUrl","kind","namespace","name","useRouteRefParams","entityRouteRef","navigate","useNavigate","errorApi","useApi","errorApiRef","catalogApi","catalogApiRef","value","entity","error","loading","retry","refresh","useAsyncRetry","getEntityByRef","useEffect","post","Error","CatalogEntityPage","AsyncEntityProvider","Outlet"],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[9323],{89323:function(P,e,n){n.r(e),n.d(e,{CatalogPage:function(){return m},DefaultCatalogPage:function(){return c}});var t=n(52322),D=n(2784),g=n(79635),l=n(23196),o=n(60871),s=n(40303),u=n(19625),j=n(86359),x=n(64355);const h=()=>(0,x.y)();function c(i){const{columns:d,actions:C,initiallySelectedFilter:f="owned",initialKind:p="component",tableOptions:v={},emptyContent:y}=i;var a;const O=(a=(0,o.h_)(o.Ds).getOptionalString("organization.name"))!==null&&a!==void 0?a:"Backstage",r=(0,o.tg)(u.yw),{createButtonTitle:F}=h();return(0,t.jsx)(l.g9,{title:`${O} Catalog`,themeId:"home",children:(0,t.jsxs)(l.VY,{children:[(0,t.jsxs)(l.yW,{title:"",children:[(0,t.jsx)(l.XF,{title:F,to:r&&r()}),(0,t.jsx)(l.qt,{children:"All your software catalog entities"})]}),(0,t.jsx)(s.UO,{children:(0,t.jsxs)(s._i,{children:[(0,t.jsxs)(s._i.Filters,{children:[(0,t.jsx)(s.tW,{initialFilter:p}),(0,t.jsx)(s.sL,{}),(0,t.jsx)(s.EW,{initialFilter:f}),(0,t.jsx)(s.dq,{}),(0,t.jsx)(s.df,{}),(0,t.jsx)(s.xE,{}),(0,t.jsx)(s.nl,{})]}),(0,t.jsx)(s._i.Content,{children:(0,t.jsx)(j.E,{columns:d,actions:C,tableOptions:v,emptyContent:y})})]})})]})})}function m(i){return(0,g.pC)()||(0,t.jsx)(c,{...i})}}}]);})();
1
+ "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[9323],{89323:function(P,e,n){n.r(e),n.d(e,{CatalogPage:function(){return m},DefaultCatalogPage:function(){return c}});var t=n(52322),D=n(2784),g=n(73557),l=n(23196),o=n(60871),s=n(40303),u=n(19625),j=n(86359),x=n(64355);const h=()=>(0,x.y)();function c(i){const{columns:d,actions:C,initiallySelectedFilter:f="owned",initialKind:p="component",tableOptions:v={},emptyContent:y}=i;var a;const O=(a=(0,o.h_)(o.Ds).getOptionalString("organization.name"))!==null&&a!==void 0?a:"Backstage",r=(0,o.tg)(u.yw),{createButtonTitle:F}=h();return(0,t.jsx)(l.g9,{title:`${O} Catalog`,themeId:"home",children:(0,t.jsxs)(l.VY,{children:[(0,t.jsxs)(l.yW,{title:"",children:[(0,t.jsx)(l.XF,{title:F,to:r&&r()}),(0,t.jsx)(l.qt,{children:"All your software catalog entities"})]}),(0,t.jsx)(s.UO,{children:(0,t.jsxs)(s._i,{children:[(0,t.jsxs)(s._i.Filters,{children:[(0,t.jsx)(s.tW,{initialFilter:p}),(0,t.jsx)(s.sL,{}),(0,t.jsx)(s.EW,{initialFilter:f}),(0,t.jsx)(s.dq,{}),(0,t.jsx)(s.df,{}),(0,t.jsx)(s.xE,{}),(0,t.jsx)(s.nl,{})]}),(0,t.jsx)(s._i.Content,{children:(0,t.jsx)(j.E,{columns:d,actions:C,tableOptions:v,emptyContent:y})})]})})]})})}function m(i){return(0,g.pC)()||(0,t.jsx)(c,{...i})}}}]);})();
2
2
 
3
- //# sourceMappingURL=9323.a4a386cd.chunk.js.map
3
+ //# sourceMappingURL=9323.6577088c.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/9323.a4a386cd.chunk.js","mappings":"kVA2BO,MAAMA,EAA0B,OACrCC,EAAAA,GAAgBA,EC6BX,SAASC,EAAmBC,EAAgC,CACjE,KAAM,CACJC,QAAAA,EACAC,QAAAA,EACAC,wBAAAA,EAA0B,QAC1BC,YAAAA,EAAc,YACdC,aAAAA,EAAe,CAAC,EAChBC,aAAAA,CAAY,EACVN,E,IAEFO,EADF,MAAMC,GACJD,KAAAA,EAAAA,IAAOE,EAAAA,EAAYA,EAAEC,kBAAkB,mBAAmB,KAAnB,MAAvCH,IAAAA,OAAAA,EAA+D,YAC3DI,KAAsBC,EAAAA,IAAYC,EAAAA,EAAuBA,EAEzD,CAAEC,kBAAAA,CAAkB,EAAIjB,EAAwB,EAEtD,SACE,OAACkB,EAAAA,GAAcA,CAACC,MAAO,GAAGR,YAAmBS,QAAQ,O,YACnD,QAACC,EAAAA,GAAOA,C,aACN,QAACC,EAAAA,GAAaA,CAACH,MAAM,G,aACnB,OAACI,EAAAA,GAAYA,CACXJ,MAAOF,EACPO,GAAIV,GAAuBA,EAAoB,C,MAEjD,OAACW,EAAAA,GAAaA,C,SAAC,oC,SAEjB,OAACC,EAAAA,GAAkBA,C,YACjB,QAACC,EAAAA,GAAmBA,C,aAClB,QAACA,EAAAA,GAAAA,QAA2B,C,aAC1B,OAACC,EAAAA,GAAgBA,CAACC,cAAetB,C,MACjC,OAACuB,EAAAA,GAAgBA,CAAAA,CAAAA,KACjB,OAACC,EAAAA,GAAcA,CAACF,cAAevB,C,MAC/B,OAAC0B,EAAAA,GAAiBA,CAAAA,CAAAA,KAClB,OAACC,EAAAA,GAAqBA,CAAAA,CAAAA,KACtB,OAACC,EAAAA,GAAeA,CAAAA,CAAAA,KAChB,OAACC,EAAAA,GAA4BA,CAAAA,CAAAA,C,OAE/B,OAACR,EAAAA,GAAAA,QAA2B,C,YAC1B,OAACS,EAAAA,EAAYA,CACXhC,QAASA,EACTC,QAASA,EACTG,aAAcA,EACdC,aAAcA,C,cAQ9B,CCnFO,SAAS4B,EAAYlC,EAAgC,CAG1D,SAFemC,EAAAA,IAAU,MAER,OAACpC,EAAkBA,CAAE,GAAGC,C,EAC3C,C","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"],"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/alpha';\n\nexport type CatalogPluginOptions = {\n createButtonTitle: string;\n};\n\n/** @ignore */\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 EntityKindPicker,\n} from '@backstage/plugin-catalog-react';\nimport React, { ReactNode } from 'react';\nimport { createComponentRouteRef } from '../../routes';\nimport { CatalogTable, CatalogTableRow } from '../CatalogTable';\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 emptyContent?: ReactNode;\n}\n\nexport function DefaultCatalogPage(props: DefaultCatalogPageProps) {\n const {\n columns,\n actions,\n initiallySelectedFilter = 'owned',\n initialKind = 'component',\n tableOptions = {},\n emptyContent,\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 <Content>\n <ContentHeader title=\"\">\n <CreateButton\n title={createButtonTitle}\n to={createComponentLink && createComponentLink()}\n />\n <SupportButton>All your software catalog entities</SupportButton>\n </ContentHeader>\n <EntityListProvider>\n <CatalogFilterLayout>\n <CatalogFilterLayout.Filters>\n <EntityKindPicker initialFilter={initialKind} />\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 emptyContent={emptyContent}\n />\n </CatalogFilterLayout.Content>\n </CatalogFilterLayout>\n </EntityListProvider>\n </Content>\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-dom';\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"],"names":["useCatalogPluginOptions","usePluginOptions","DefaultCatalogPage","props","columns","actions","initiallySelectedFilter","initialKind","tableOptions","emptyContent","useApi","orgName","configApiRef","getOptionalString","createComponentLink","useRouteRef","createComponentRouteRef","createButtonTitle","PageWithHeader","title","themeId","Content","ContentHeader","CreateButton","to","SupportButton","EntityListProvider","CatalogFilterLayout","EntityKindPicker","initialFilter","EntityTypePicker","UserListPicker","EntityOwnerPicker","EntityLifecyclePicker","EntityTagPicker","EntityProcessingStatusPicker","CatalogTable","CatalogPage","useOutlet"],"sourceRoot":""}
1
+ {"version":3,"file":"static/9323.6577088c.chunk.js","mappings":"kVA2BO,MAAMA,EAA0B,OACrCC,EAAAA,GAAgBA,EC6BX,SAASC,EAAmBC,EAAgC,CACjE,KAAM,CACJC,QAAAA,EACAC,QAAAA,EACAC,wBAAAA,EAA0B,QAC1BC,YAAAA,EAAc,YACdC,aAAAA,EAAe,CAAC,EAChBC,aAAAA,CAAY,EACVN,E,IAEFO,EADF,MAAMC,GACJD,KAAAA,EAAAA,IAAOE,EAAAA,EAAYA,EAAEC,kBAAkB,mBAAmB,KAAnB,MAAvCH,IAAAA,OAAAA,EAA+D,YAC3DI,KAAsBC,EAAAA,IAAYC,EAAAA,EAAuBA,EAEzD,CAAEC,kBAAAA,CAAkB,EAAIjB,EAAwB,EAEtD,SACE,OAACkB,EAAAA,GAAcA,CAACC,MAAO,GAAGR,YAAmBS,QAAQ,O,YACnD,QAACC,EAAAA,GAAOA,C,aACN,QAACC,EAAAA,GAAaA,CAACH,MAAM,G,aACnB,OAACI,EAAAA,GAAYA,CACXJ,MAAOF,EACPO,GAAIV,GAAuBA,EAAoB,C,MAEjD,OAACW,EAAAA,GAAaA,C,SAAC,oC,SAEjB,OAACC,EAAAA,GAAkBA,C,YACjB,QAACC,EAAAA,GAAmBA,C,aAClB,QAACA,EAAAA,GAAAA,QAA2B,C,aAC1B,OAACC,EAAAA,GAAgBA,CAACC,cAAetB,C,MACjC,OAACuB,EAAAA,GAAgBA,CAAAA,CAAAA,KACjB,OAACC,EAAAA,GAAcA,CAACF,cAAevB,C,MAC/B,OAAC0B,EAAAA,GAAiBA,CAAAA,CAAAA,KAClB,OAACC,EAAAA,GAAqBA,CAAAA,CAAAA,KACtB,OAACC,EAAAA,GAAeA,CAAAA,CAAAA,KAChB,OAACC,EAAAA,GAA4BA,CAAAA,CAAAA,C,OAE/B,OAACR,EAAAA,GAAAA,QAA2B,C,YAC1B,OAACS,EAAAA,EAAYA,CACXhC,QAASA,EACTC,QAASA,EACTG,aAAcA,EACdC,aAAcA,C,cAQ9B,CCnFO,SAAS4B,EAAYlC,EAAgC,CAG1D,SAFemC,EAAAA,IAAU,MAER,OAACpC,EAAkBA,CAAE,GAAGC,C,EAC3C,C","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"],"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/alpha';\n\nexport type CatalogPluginOptions = {\n createButtonTitle: string;\n};\n\n/** @ignore */\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 EntityKindPicker,\n} from '@backstage/plugin-catalog-react';\nimport React, { ReactNode } from 'react';\nimport { createComponentRouteRef } from '../../routes';\nimport { CatalogTable, CatalogTableRow } from '../CatalogTable';\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 emptyContent?: ReactNode;\n}\n\nexport function DefaultCatalogPage(props: DefaultCatalogPageProps) {\n const {\n columns,\n actions,\n initiallySelectedFilter = 'owned',\n initialKind = 'component',\n tableOptions = {},\n emptyContent,\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 <Content>\n <ContentHeader title=\"\">\n <CreateButton\n title={createButtonTitle}\n to={createComponentLink && createComponentLink()}\n />\n <SupportButton>All your software catalog entities</SupportButton>\n </ContentHeader>\n <EntityListProvider>\n <CatalogFilterLayout>\n <CatalogFilterLayout.Filters>\n <EntityKindPicker initialFilter={initialKind} />\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 emptyContent={emptyContent}\n />\n </CatalogFilterLayout.Content>\n </CatalogFilterLayout>\n </EntityListProvider>\n </Content>\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-dom';\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"],"names":["useCatalogPluginOptions","usePluginOptions","DefaultCatalogPage","props","columns","actions","initiallySelectedFilter","initialKind","tableOptions","emptyContent","useApi","orgName","configApiRef","getOptionalString","createComponentLink","useRouteRef","createComponentRouteRef","createButtonTitle","PageWithHeader","title","themeId","Content","ContentHeader","CreateButton","to","SupportButton","EntityListProvider","CatalogFilterLayout","EntityKindPicker","initialFilter","EntityTypePicker","UserListPicker","EntityOwnerPicker","EntityLifecyclePicker","EntityTagPicker","EntityProcessingStatusPicker","CatalogTable","CatalogPage","useOutlet"],"sourceRoot":""}