@techdocs/cli 1.4.3-next.0 → 1.4.3-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 (73) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/embedded-app/.config-schema.json +14 -4
  3. package/dist/embedded-app/index.html +1 -1
  4. package/dist/embedded-app/static/{1032.5432dbdc.chunk.js → 1032.be408b83.chunk.js} +2 -2
  5. package/dist/embedded-app/static/1032.be408b83.chunk.js.map +1 -0
  6. package/dist/embedded-app/static/{1049.afc49325.chunk.js → 1049.fc74e20d.chunk.js} +1 -1
  7. package/dist/embedded-app/static/1049.fc74e20d.chunk.js.map +1 -0
  8. package/dist/embedded-app/static/{1105.7118905d.chunk.js → 1105.c65d4e64.chunk.js} +2 -2
  9. package/dist/embedded-app/static/1105.c65d4e64.chunk.js.map +1 -0
  10. package/dist/embedded-app/static/{184.40770c0f.chunk.js → 184.a8ac59c2.chunk.js} +2 -2
  11. package/dist/embedded-app/static/184.a8ac59c2.chunk.js.map +1 -0
  12. package/dist/embedded-app/static/{2440.bdaada5b.chunk.js → 2440.b8e50edb.chunk.js} +2 -2
  13. package/dist/embedded-app/static/2440.b8e50edb.chunk.js.map +1 -0
  14. package/dist/embedded-app/static/{5458.e13e6e9a.chunk.js → 5458.38a11fde.chunk.js} +2 -2
  15. package/dist/embedded-app/static/5458.38a11fde.chunk.js.map +1 -0
  16. package/dist/embedded-app/static/6051.098a0af9.chunk.js.map +1 -1
  17. package/dist/embedded-app/static/{732.68398828.chunk.js → 732.bb820d6a.chunk.js} +2 -2
  18. package/dist/embedded-app/static/732.bb820d6a.chunk.js.map +1 -0
  19. package/dist/embedded-app/static/{7560.83ca9e57.chunk.js → 7560.f715d7bd.chunk.js} +2 -2
  20. package/dist/embedded-app/static/{7560.83ca9e57.chunk.js.map → 7560.f715d7bd.chunk.js.map} +1 -1
  21. package/dist/embedded-app/static/{7750.b4122abf.chunk.js → 7750.5d194dad.chunk.js} +2 -2
  22. package/dist/embedded-app/static/{7750.b4122abf.chunk.js.map → 7750.5d194dad.chunk.js.map} +1 -1
  23. package/dist/embedded-app/static/{8951.180aa2e1.chunk.js → 8951.36f657ca.chunk.js} +2 -2
  24. package/dist/embedded-app/static/{8951.180aa2e1.chunk.js.map → 8951.36f657ca.chunk.js.map} +1 -1
  25. package/dist/embedded-app/static/9323.9cac24aa.chunk.js +3 -0
  26. package/dist/embedded-app/static/9323.9cac24aa.chunk.js.map +1 -0
  27. package/dist/embedded-app/static/{9545.98667b5e.chunk.js → 9545.3dc1ecf9.chunk.js} +2 -2
  28. package/dist/embedded-app/static/9545.3dc1ecf9.chunk.js.map +1 -0
  29. package/dist/embedded-app/static/{9770.250ea1f4.chunk.js → 9770.c98e9dad.chunk.js} +2 -2
  30. package/dist/embedded-app/static/9770.c98e9dad.chunk.js.map +1 -0
  31. package/dist/embedded-app/static/main.f4c9013f.js +522 -0
  32. package/dist/embedded-app/static/main.f4c9013f.js.map +1 -0
  33. package/dist/embedded-app/static/{module-luxon.ee277e4b.js → module-luxon.a1854eb9.js} +1 -1
  34. package/dist/embedded-app/static/module-luxon.a1854eb9.js.map +1 -0
  35. package/dist/embedded-app/static/{module-material-ui.0ec85351.js → module-material-ui.09dab505.js} +1 -1
  36. package/dist/embedded-app/static/module-material-ui.09dab505.js.map +1 -0
  37. package/dist/embedded-app/static/module-octokit.fe13bd50.js +5 -0
  38. package/dist/embedded-app/static/module-octokit.fe13bd50.js.map +1 -0
  39. package/dist/embedded-app/static/module-react-router-dom.cf49e816.js +21 -0
  40. package/dist/embedded-app/static/module-react-router-dom.cf49e816.js.map +1 -0
  41. package/dist/embedded-app/static/{module-react-router.3fa3d41e.js → module-react-router.a589137b.js} +4 -4
  42. package/dist/embedded-app/static/module-react-router.a589137b.js.map +1 -0
  43. package/dist/embedded-app/static/{module-yaml.639cc746.js → module-yaml.af9b4f42.js} +1 -1
  44. package/dist/embedded-app/static/module-yaml.af9b4f42.js.map +1 -0
  45. package/dist/embedded-app/static/{runtime.1628d687.js → runtime.f4c9013f.js} +2 -2
  46. package/dist/embedded-app/static/{runtime.1628d687.js.map → runtime.f4c9013f.js.map} +1 -1
  47. package/dist/embedded-app/static/vendor.f4c9013f.js +212 -0
  48. package/dist/embedded-app/static/vendor.f4c9013f.js.map +1 -0
  49. package/dist/index.cjs.js +1 -1
  50. package/package.json +5 -5
  51. package/dist/embedded-app/static/1032.5432dbdc.chunk.js.map +0 -1
  52. package/dist/embedded-app/static/1049.afc49325.chunk.js.map +0 -1
  53. package/dist/embedded-app/static/1105.7118905d.chunk.js.map +0 -1
  54. package/dist/embedded-app/static/184.40770c0f.chunk.js.map +0 -1
  55. package/dist/embedded-app/static/2440.bdaada5b.chunk.js.map +0 -1
  56. package/dist/embedded-app/static/5458.e13e6e9a.chunk.js.map +0 -1
  57. package/dist/embedded-app/static/732.68398828.chunk.js.map +0 -1
  58. package/dist/embedded-app/static/9323.ec9ef0a5.chunk.js +0 -3
  59. package/dist/embedded-app/static/9323.ec9ef0a5.chunk.js.map +0 -1
  60. package/dist/embedded-app/static/9545.98667b5e.chunk.js.map +0 -1
  61. package/dist/embedded-app/static/9770.250ea1f4.chunk.js.map +0 -1
  62. package/dist/embedded-app/static/main.1628d687.js +0 -508
  63. package/dist/embedded-app/static/main.1628d687.js.map +0 -1
  64. package/dist/embedded-app/static/module-luxon.ee277e4b.js.map +0 -1
  65. package/dist/embedded-app/static/module-material-ui.0ec85351.js.map +0 -1
  66. package/dist/embedded-app/static/module-octokit.95dab40d.js +0 -5
  67. package/dist/embedded-app/static/module-octokit.95dab40d.js.map +0 -1
  68. package/dist/embedded-app/static/module-react-router-dom.87e15add.js +0 -21
  69. package/dist/embedded-app/static/module-react-router-dom.87e15add.js.map +0 -1
  70. package/dist/embedded-app/static/module-react-router.3fa3d41e.js.map +0 -1
  71. package/dist/embedded-app/static/module-yaml.639cc746.js.map +0 -1
  72. package/dist/embedded-app/static/vendor.1628d687.js +0 -212
  73. package/dist/embedded-app/static/vendor.1628d687.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.3-next.0";
208
+ var version = "1.4.3-next.2";
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.3-next.0",
4
+ "version": "1.4.3-next.2",
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.8-next.0",
39
+ "@backstage/cli": "^0.22.8-next.2",
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.6-next.0",
64
- "@backstage/catalog-model": "^1.3.0",
63
+ "@backstage/backend-common": "^0.19.0-next.2",
64
+ "@backstage/catalog-model": "^1.4.0-next.1",
65
65
  "@backstage/cli-common": "^0.1.12",
66
66
  "@backstage/config": "^1.0.7",
67
- "@backstage/plugin-techdocs-node": "^1.7.2-next.0",
67
+ "@backstage/plugin-techdocs-node": "^1.7.2-next.2",
68
68
  "@types/dockerode": "^3.3.0",
69
69
  "commander": "^9.1.0",
70
70
  "dockerode": "^3.3.1",
@@ -1 +0,0 @@
1
- {"version":3,"file":"static/1032.5432dbdc.chunk.js","mappings":"gQAiCO,SAASA,EAAuBC,EAAoC,CACzE,KAAM,CACJC,QAAAA,EAAU,WACVC,MAAAA,EAAQ,uBACRC,QAAAA,EAAUC,EAAAA,qBAAqB,EAC7BJ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EACzCA,EAAAA,GAAAA,QAAAA,0BAA8C,EAC9CA,EAAAA,GAAAA,QAAAA,gCAAoD,C,EAEzCd,EACX,uFACWwB,EAAuBnB,GAClCA,EAEWZ,EAAuD,CAClEqB,EAAAA,GAAAA,QAAAA,sBAA0C,CAAES,YAAa,UAAW,CAAC,EACrET,EAAAA,GAAAA,QAAAA,kBAAsC,EACtCA,EAAAA,GAAAA,QAAAA,qBAAyC,EACzCA,EAAAA,GAAAA,QAAAA,0BAA8C,EAC9CA,EAAAA,GAAAA,QAAAA,gCAAoD,C,EAEzCW,EACX,sFACWvB,EAAsBG,GACjCA,EAEWqB,EAAmD,CAC9DZ,EAAAA,GAAAA,QAAAA,sBAA0C,CAAES,YAAa,QAAS,CAAC,EACnET,EAAAA,GAAAA,QAAAA,kBAAsC,EACtCA,EAAAA,GAAAA,QAAAA,gCAAoD,C,EAEzCa,EACX,oFACWC,EAAoBvB,GAC/BA,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/RelatedEntitiesCard/RelatedEntitiesCard.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/RelatedEntitiesCard/presets.ts"],"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 { RELATION_DEPENDS_ON, ResourceEntity } from '@backstage/catalog-model';\nimport { InfoCardVariants, TableColumn } from '@backstage/core-components';\nimport React from 'react';\nimport {\n asResourceEntities,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n resourceEntityColumns,\n} from '../RelatedEntitiesCard';\n\n/** @public */\nexport interface DependsOnResourcesCardProps {\n variant?: InfoCardVariants;\n title?: string;\n columns?: TableColumn<ResourceEntity>[];\n}\n\nexport function DependsOnResourcesCard(props: DependsOnResourcesCardProps) {\n const {\n variant = 'gridItem',\n title = 'Depends on resources',\n columns = resourceEntityColumns,\n } = props;\n return (\n <RelatedEntitiesCard\n variant={variant}\n title={title}\n entityKind=\"Resource\"\n relationType={RELATION_DEPENDS_ON}\n columns={columns}\n emptyMessage=\"No resource is a dependency of this component\"\n emptyHelpLink={componentEntityHelpLink}\n asRenderableEntities={asResourceEntities}\n />\n );\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 { Entity } from '@backstage/catalog-model';\nimport { Typography } from '@material-ui/core';\nimport {\n EntityTable,\n useEntity,\n useRelatedEntities,\n} from '@backstage/plugin-catalog-react';\nimport React from 'react';\nimport {\n InfoCard,\n InfoCardVariants,\n Link,\n Progress,\n ResponseErrorPanel,\n TableColumn,\n} from '@backstage/core-components';\n\n/** @public */\nexport type RelatedEntitiesCardProps<T extends Entity> = {\n variant?: InfoCardVariants;\n title: string;\n columns: TableColumn<T>[];\n entityKind?: string;\n relationType: string;\n emptyMessage: string;\n emptyHelpLink: string;\n asRenderableEntities: (entities: Entity[]) => T[];\n};\n\n/**\n * A low level card component that can be used as a building block for more\n * specific cards.\n *\n * @remarks\n *\n * You probably want to make a dedicated component for your needs, which renders\n * this card as its implementation with some of the props set to the appropriate\n * values.\n *\n * @public\n */\nexport function RelatedEntitiesCard<T extends Entity>(\n props: RelatedEntitiesCardProps<T>,\n) {\n const {\n variant = 'gridItem',\n title,\n columns,\n entityKind,\n relationType,\n emptyMessage,\n emptyHelpLink,\n asRenderableEntities,\n } = props;\n\n const { entity } = useEntity();\n const { entities, loading, error } = useRelatedEntities(entity, {\n type: relationType,\n kind: entityKind,\n });\n\n if (loading) {\n return (\n <InfoCard variant={variant} title={title}>\n <Progress />\n </InfoCard>\n );\n }\n\n if (error) {\n return (\n <InfoCard variant={variant} title={title}>\n <ResponseErrorPanel error={error} />\n </InfoCard>\n );\n }\n\n return (\n <EntityTable\n title={title}\n variant={variant}\n emptyContent={\n <div style={{ textAlign: 'center' }}>\n <Typography variant=\"body1\">{emptyMessage}</Typography>\n <Typography variant=\"body2\">\n <Link to={emptyHelpLink}>Learn how to change this.</Link>\n </Typography>\n </div>\n }\n columns={columns}\n entities={asRenderableEntities(entities || [])}\n />\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 */\nimport {\n ComponentEntity,\n Entity,\n ResourceEntity,\n SystemEntity,\n} from '@backstage/catalog-model';\nimport { EntityTable } from '@backstage/plugin-catalog-react';\nimport { TableColumn } from '@backstage/core-components';\n\nexport const componentEntityColumns: TableColumn<ComponentEntity>[] = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'component' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createSpecTypeColumn(),\n EntityTable.columns.createSpecLifecycleColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const componentEntityHelpLink: string =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component';\nexport const asComponentEntities = (entities: Entity[]): ComponentEntity[] =>\n entities as ComponentEntity[];\n\nexport const resourceEntityColumns: TableColumn<ResourceEntity>[] = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'resource' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createSpecTypeColumn(),\n EntityTable.columns.createSpecLifecycleColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const resourceEntityHelpLink: string =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource';\nexport const asResourceEntities = (entities: Entity[]): ResourceEntity[] =>\n entities as ResourceEntity[];\n\nexport const systemEntityColumns: TableColumn<SystemEntity>[] = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'system' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const systemEntityHelpLink: string =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system';\nexport const asSystemEntities = (entities: Entity[]): SystemEntity[] =>\n entities as SystemEntity[];\n"],"names":["DependsOnResourcesCard","props","variant","title","columns","resourceEntityColumns","RelatedEntitiesCard","entityKind","relationType","RELATION_DEPENDS_ON","emptyMessage","emptyHelpLink","componentEntityHelpLink","asRenderableEntities","asResourceEntities","entity","useEntity","entities","loading","error","useRelatedEntities","type","kind","InfoCard","Progress","ResponseErrorPanel","EntityTable","emptyContent","div","style","textAlign","Typography","Link","to","componentEntityColumns","defaultKind","asComponentEntities","resourceEntityHelpLink","systemEntityColumns","systemEntityHelpLink","asSystemEntities"],"sourceRoot":""}