@techdocs/cli 1.4.1 → 1.4.2-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/embedded-app/.config-schema.json +52 -0
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/static/{1032.16924053.chunk.js → 1032.8b636047.chunk.js} +2 -2
  5. package/dist/embedded-app/static/{1032.16924053.chunk.js.map → 1032.8b636047.chunk.js.map} +1 -1
  6. package/dist/embedded-app/static/{1105.0b45e765.chunk.js → 1105.82a0fd7f.chunk.js} +2 -2
  7. package/dist/embedded-app/static/{1105.0b45e765.chunk.js.map → 1105.82a0fd7f.chunk.js.map} +1 -1
  8. package/dist/embedded-app/static/{184.90489ed7.chunk.js → 184.44692312.chunk.js} +2 -2
  9. package/dist/embedded-app/static/{184.90489ed7.chunk.js.map → 184.44692312.chunk.js.map} +1 -1
  10. package/dist/embedded-app/static/{2440.fa0c12ae.chunk.js → 2440.5e8d7e92.chunk.js} +2 -2
  11. package/dist/embedded-app/static/{2440.fa0c12ae.chunk.js.map → 2440.5e8d7e92.chunk.js.map} +1 -1
  12. package/dist/embedded-app/static/{5458.fe2a0a6d.chunk.js → 5458.b84b2f47.chunk.js} +2 -2
  13. package/dist/embedded-app/static/{5458.fe2a0a6d.chunk.js.map → 5458.b84b2f47.chunk.js.map} +1 -1
  14. package/dist/embedded-app/static/{732.e935fc39.chunk.js → 732.1e19510d.chunk.js} +2 -2
  15. package/dist/embedded-app/static/{732.e935fc39.chunk.js.map → 732.1e19510d.chunk.js.map} +1 -1
  16. package/dist/embedded-app/static/{7560.bb8f0386.chunk.js → 7560.785ca5bd.chunk.js} +2 -2
  17. package/dist/embedded-app/static/{7560.bb8f0386.chunk.js.map → 7560.785ca5bd.chunk.js.map} +1 -1
  18. package/dist/embedded-app/static/{7750.6fd0ac0b.chunk.js → 7750.7eb92a3e.chunk.js} +2 -2
  19. package/dist/embedded-app/static/{7750.6fd0ac0b.chunk.js.map → 7750.7eb92a3e.chunk.js.map} +1 -1
  20. package/dist/embedded-app/static/{8951.dd51135b.chunk.js → 8951.ad64462a.chunk.js} +2 -2
  21. package/dist/embedded-app/static/{8951.dd51135b.chunk.js.map → 8951.ad64462a.chunk.js.map} +1 -1
  22. package/dist/embedded-app/static/9323.b8f35b31.chunk.js +3 -0
  23. package/dist/embedded-app/static/9323.b8f35b31.chunk.js.map +1 -0
  24. package/dist/embedded-app/static/{9545.b25a5c55.chunk.js → 9545.262ef793.chunk.js} +2 -2
  25. package/dist/embedded-app/static/{9545.b25a5c55.chunk.js.map → 9545.262ef793.chunk.js.map} +1 -1
  26. package/dist/embedded-app/static/{9770.d2ae96e3.chunk.js → 9770.86ef0a38.chunk.js} +2 -2
  27. package/dist/embedded-app/static/{9770.d2ae96e3.chunk.js.map → 9770.86ef0a38.chunk.js.map} +1 -1
  28. package/dist/embedded-app/static/main.8fd0fc33.js +508 -0
  29. package/dist/embedded-app/static/main.8fd0fc33.js.map +1 -0
  30. package/dist/embedded-app/static/{module-yaml.feabae04.js → module-yaml.639cc746.js} +8 -8
  31. package/dist/embedded-app/static/module-yaml.639cc746.js.map +1 -0
  32. package/dist/embedded-app/static/{runtime.7f000815.js → runtime.8fd0fc33.js} +2 -2
  33. package/dist/embedded-app/static/{runtime.7f000815.js.map → runtime.8fd0fc33.js.map} +1 -1
  34. package/dist/embedded-app/static/{vendor.7f000815.js → vendor.8fd0fc33.js} +1 -1
  35. package/dist/embedded-app/static/{vendor.7f000815.js.map → vendor.8fd0fc33.js.map} +1 -1
  36. package/dist/index.cjs.js +1 -1
  37. package/package.json +4 -4
  38. package/dist/embedded-app/static/9323.4703a3d8.chunk.js +0 -3
  39. package/dist/embedded-app/static/9323.4703a3d8.chunk.js.map +0 -1
  40. package/dist/embedded-app/static/main.7f000815.js +0 -508
  41. package/dist/embedded-app/static/main.7f000815.js.map +0 -1
  42. package/dist/embedded-app/static/module-yaml.feabae04.js.map +0 -1
package/dist/index.cjs.js CHANGED
@@ -205,7 +205,7 @@ function lazy(getActionFunc) {
205
205
  };
206
206
  }
207
207
 
208
- var version = "1.4.1";
208
+ var version = "1.4.2-next.0";
209
209
 
210
210
  const main = (argv) => {
211
211
  commander.program.name("techdocs-cli").version(version);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@techdocs/cli",
3
3
  "description": "Utility CLI for managing TechDocs sites in Backstage.",
4
- "version": "1.4.1",
4
+ "version": "1.4.2-next.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -36,7 +36,7 @@
36
36
  "techdocs-cli": "bin/techdocs-cli"
37
37
  },
38
38
  "devDependencies": {
39
- "@backstage/cli": "^0.22.6",
39
+ "@backstage/cli": "^0.22.7-next.0",
40
40
  "@frsource/cypress-plugin-visual-regression-diff": "^3.2.8",
41
41
  "@types/commander": "^2.12.2",
42
42
  "@types/fs-extra": "^9.0.6",
@@ -60,11 +60,11 @@
60
60
  "ext": "ts"
61
61
  },
62
62
  "dependencies": {
63
- "@backstage/backend-common": "^0.18.4",
63
+ "@backstage/backend-common": "^0.18.5-next.0",
64
64
  "@backstage/catalog-model": "^1.3.0",
65
65
  "@backstage/cli-common": "^0.1.12",
66
66
  "@backstage/config": "^1.0.7",
67
- "@backstage/plugin-techdocs-node": "^1.7.0",
67
+ "@backstage/plugin-techdocs-node": "^1.7.1-next.0",
68
68
  "@types/dockerode": "^3.3.0",
69
69
  "commander": "^9.1.0",
70
70
  "dockerode": "^3.3.1",
@@ -1,3 +0,0 @@
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(53974),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
-
3
- //# sourceMappingURL=9323.4703a3d8.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/9323.4703a3d8.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":""}