@techdocs/cli 1.4.4 → 1.4.5-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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @techdocs/cli
2
2
 
3
+ ## 1.4.5-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-common@0.19.2-next.1
9
+ - @backstage/plugin-techdocs-node@1.7.4-next.1
10
+ - @backstage/catalog-model@1.4.1
11
+ - @backstage/cli-common@0.1.12
12
+ - @backstage/config@1.0.8
13
+
14
+ ## 1.4.5-next.0
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+ - @backstage/backend-common@0.19.2-next.0
20
+ - @backstage/catalog-model@1.4.1
21
+ - @backstage/cli-common@0.1.12
22
+ - @backstage/config@1.0.8
23
+ - @backstage/plugin-techdocs-node@1.7.4-next.0
24
+
3
25
  ## 1.4.4
4
26
 
5
27
  ### Patch Changes
@@ -862,7 +862,15 @@
862
862
  "visibility": "secret",
863
863
  "anyOf": [
864
864
  {
865
- "$ref": "#/definitions/Partial<{[key:string]:unknown;password:string;}>"
865
+ "type": "object",
866
+ "additionalProperties": {},
867
+ "properties": {
868
+ "password": {
869
+ "description": "Password that belongs to the client User",
870
+ "visibility": "secret",
871
+ "type": "string"
872
+ }
873
+ }
866
874
  },
867
875
  {
868
876
  "type": "string"
@@ -1189,18 +1197,6 @@
1189
1197
  "app",
1190
1198
  "backend"
1191
1199
  ],
1192
- "definitions": {
1193
- "Partial<{[key:string]:unknown;password:string;}>": {
1194
- "type": "object",
1195
- "properties": {
1196
- "password": {
1197
- "description": "Password that belongs to the client User",
1198
- "visibility": "secret",
1199
- "type": "string"
1200
- }
1201
- }
1202
- }
1203
- },
1204
1200
  "$schema": "http://json-schema.org/draft-07/schema#"
1205
1201
  }
1206
1202
  },
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open platform for building developer portals"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><script defer="defer" src="/static/runtime.fef15b74.js"></script><script defer="defer" src="/static/module-material-ui.1afbaa53.js"></script><script defer="defer" src="/static/module-lodash.4c9a1319.js"></script><script defer="defer" src="/static/module-date-fns.eeb6d2d2.js"></script><script defer="defer" src="/static/module-yaml.af9b4f42.js"></script><script defer="defer" src="/static/module-ajv.be583887.js"></script><script defer="defer" src="/static/module-material-table.1d463a12.js"></script><script defer="defer" src="/static/module-luxon.a1854eb9.js"></script><script defer="defer" src="/static/module-octokit.7416db07.js"></script><script defer="defer" src="/static/module-react-dom.bd3fd0c6.js"></script><script defer="defer" src="/static/module-react-router.d2e96318.js"></script><script defer="defer" src="/static/module-react-router-dom.ef191c8f.js"></script><script defer="defer" src="/static/module-zod.49079951.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.ad887878.js"></script><script defer="defer" src="/static/vendor.fef15b74.js"></script><script defer="defer" src="/static/main.fef15b74.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Backstage is an open platform for building developer portals"/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><script defer="defer" src="/static/runtime.4b0555c5.js"></script><script defer="defer" src="/static/module-material-ui.1afbaa53.js"></script><script defer="defer" src="/static/module-lodash.4c9a1319.js"></script><script defer="defer" src="/static/module-date-fns.eeb6d2d2.js"></script><script defer="defer" src="/static/module-yaml.af9b4f42.js"></script><script defer="defer" src="/static/module-ajv.be583887.js"></script><script defer="defer" src="/static/module-material-table.1d463a12.js"></script><script defer="defer" src="/static/module-luxon.a1854eb9.js"></script><script defer="defer" src="/static/module-octokit.7416db07.js"></script><script defer="defer" src="/static/module-react-dom.bd3fd0c6.js"></script><script defer="defer" src="/static/module-react-router.d2e96318.js"></script><script defer="defer" src="/static/module-react-router-dom.ef191c8f.js"></script><script defer="defer" src="/static/module-zod.49079951.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.ad887878.js"></script><script defer="defer" src="/static/vendor.4b0555c5.js"></script><script defer="defer" src="/static/main.4b0555c5.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -0,0 +1,8 @@
1
+ "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[7750],{17750:function(Z,r,t){t.r(r),t.d(r,{EntityLinksCard:function(){return k}});var n=t(52322),h=t(39709),c=t(52160),I=t(2784),u=t(79692),v=t(90436),g=t(77277),m=t(53974);const y=`metadata:
2
+ name: example
3
+ links:
4
+ - url: https://dashboard.example.com
5
+ title: My Dashboard
6
+ icon: dashboard`,p=(0,u.Z)(a=>({code:{borderRadius:6,margin:a.spacing(2,0),background:a.palette.type==="dark"?"#444":a.palette.common.white}}),{name:"PluginCatalogEntityLinksEmptyState"});function f(){const a=p();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(v.Z,{variant:"body1",children:"No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:"}),(0,n.jsx)("div",{className:a.code,children:(0,n.jsx)(m.Oi,{text:y,language:"yaml",showLineNumbers:!0,highlightedNumbers:[3,4,5,6],customStyle:{background:"inherit",fontSize:"115%"}})}),(0,n.jsx)(g.Z,{variant:"contained",color:"primary",target:"_blank",href:"https://backstage.io/docs/features/software-catalog/descriptor-format#links-optional",children:"Read more"})]})}var x=t(24851),L=t(60871);const k=a=>{var o,i;const{cols:j=void 0,variant:S}=a,{entity:E}=(0,h.X2)(),b=(0,L.qD)();var e;const C=s=>s&&(e=b.getSystemIcon(s))!==null&&e!==void 0?e:c.Z,d=(i=E)===null||i===void 0||(o=i.metadata)===null||o===void 0?void 0:o.links;return(0,n.jsx)(m.rJ,{title:"Links",variant:S,children:!d||d.length===0?(0,n.jsx)(f,{}):(0,n.jsx)(x.s,{cols:j,items:d.map(({url:s,title:l,icon:N})=>({text:l!=null?l:s,href:s,Icon:C(N)}))})})}}}]);})();
7
+
8
+ //# sourceMappingURL=7750.c1a4c4df.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/7750.c1a4c4df.chunk.js","mappings":"mSAqBA,MAAMA,EAAc;AAAA;AAAA;AAAA;AAAA;AAAA,uBAUdC,KAAYC,EAAAA,GAChBC,IAAU,CACRC,KAAM,CACJC,aAAc,EACdC,OAAQH,EAAMI,QAAQ,EAAG,CAAC,EAC1BC,WACEL,EAAMM,QAAQC,OAAS,OAAS,OAASP,EAAMM,QAAQE,OAAOC,KAClE,CACF,GACA,CAAEC,KAAM,oCAAqC,CAAC,EAGzC,SAASC,GAAwB,CACtC,MAAMC,EAAUd,EAAU,EAE1B,SACE,oB,aACE,OAACe,EAAAA,EAAUA,CAACC,QAAQ,Q,SAAQ,oH,MAI5B,OAACC,MAAAA,CAAIC,UAAWJ,EAAQX,K,YACtB,OAACgB,EAAAA,GAAWA,CACVC,KAAMrB,EACNsB,SAAS,OACTC,gBAAe,GACfC,mBAAoB,CAAC,EAAG,EAAG,EAAG,C,EAC9BC,YAAa,CAAEjB,WAAY,UAAWkB,SAAU,MAAO,C,QAG3D,OAACC,EAAAA,EAAMA,CACLV,QAAQ,YACRW,MAAM,UACNC,OAAO,SACPC,KAAK,uF,SACN,W,KAKP,C,0BCxCO,MAAMC,EAAmBC,GAAAA,C,IAQhBC,EAAAA,EAPd,KAAM,CAAEC,KAAAA,EAAOC,OAAWlB,QAAAA,CAAQ,EAAIe,EAChC,CAAEC,OAAAA,CAAO,KAAIG,EAAAA,IAAU,EACvBC,KAAMC,EAAAA,IAAO,E,IAGXD,EADR,MAAME,EAAgBC,GACpBA,IAAMH,EAAAA,EAAII,cAAcD,CAAG,KAAHA,MAAlBH,IAAAA,OAAAA,EAAyCK,EAAAA,EAE3CC,GAAQV,EAAAA,KAAAA,MAAAA,IAAAA,SAAAA,EAAAA,EAAQW,YAAQ,MAAhBX,IAAAA,OAAAA,OAAAA,EAAkBU,MAEhC,SACE,OAACE,EAAAA,GAAQA,CAACC,MAAM,QAAQ7B,QAASA,E,SAC9B,CAAC0B,GAASA,EAAMI,SAAW,KAC1B,OAACjC,EAAqBA,CAAAA,CAAAA,KAEtB,OAACkC,EAAAA,EAAaA,CACZd,KAAMA,EACNe,MAAON,EAAMO,IAAI,CAAC,CAAEC,IAAAA,EAAKL,MAAAA,EAAOM,KAAAA,CAAK,KAAO,CAC1C/B,KAAMyB,GAAAA,KAAAA,EAASK,EACfrB,KAAMqB,EACNE,KAAMd,EAAaa,CAAI,CACzB,EAAE,C,IAKZ,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/EntityLinksCard/EntityLinksEmptyState.tsx","webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/EntityLinksCard/EntityLinksCard.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 { BackstageTheme } from '@backstage/theme';\nimport { Button, makeStyles, Typography } from '@material-ui/core';\nimport React from 'react';\nimport { CodeSnippet } from '@backstage/core-components';\n\nconst ENTITY_YAML = `metadata:\n name: example\n links:\n - url: https://dashboard.example.com\n title: My Dashboard\n icon: dashboard`;\n\n/** @public */\nexport type EntityLinksEmptyStateClassKey = 'code';\n\nconst useStyles = makeStyles<BackstageTheme>(\n theme => ({\n code: {\n borderRadius: 6,\n margin: theme.spacing(2, 0),\n background:\n theme.palette.type === 'dark' ? '#444' : theme.palette.common.white,\n },\n }),\n { name: 'PluginCatalogEntityLinksEmptyState' },\n);\n\nexport function EntityLinksEmptyState() {\n const classes = useStyles();\n\n return (\n <>\n <Typography variant=\"body1\">\n No links defined for this entity. You can add links to your entity YAML\n as shown in the highlighted example below:\n </Typography>\n <div className={classes.code}>\n <CodeSnippet\n text={ENTITY_YAML}\n language=\"yaml\"\n showLineNumbers\n highlightedNumbers={[3, 4, 5, 6]}\n customStyle={{ background: 'inherit', fontSize: '115%' }}\n />\n </div>\n <Button\n variant=\"contained\"\n color=\"primary\"\n target=\"_blank\"\n href=\"https://backstage.io/docs/features/software-catalog/descriptor-format#links-optional\"\n >\n Read more\n </Button>\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 { useEntity } from '@backstage/plugin-catalog-react';\nimport LanguageIcon from '@material-ui/icons/Language';\nimport React from 'react';\nimport { EntityLinksEmptyState } from './EntityLinksEmptyState';\nimport { LinksGridList } from './LinksGridList';\nimport { ColumnBreakpoints } from './types';\nimport { IconComponent, useApp } from '@backstage/core-plugin-api';\nimport { InfoCard, InfoCardVariants } from '@backstage/core-components';\n\n/** @public */\nexport interface EntityLinksCardProps {\n cols?: ColumnBreakpoints | number;\n variant?: InfoCardVariants;\n}\n\nexport const EntityLinksCard = (props: EntityLinksCardProps) => {\n const { cols = undefined, variant } = props;\n const { entity } = useEntity();\n const app = useApp();\n\n const iconResolver = (key?: string): IconComponent =>\n key ? app.getSystemIcon(key) ?? LanguageIcon : LanguageIcon;\n\n const links = entity?.metadata?.links;\n\n return (\n <InfoCard title=\"Links\" variant={variant}>\n {!links || links.length === 0 ? (\n <EntityLinksEmptyState />\n ) : (\n <LinksGridList\n cols={cols}\n items={links.map(({ url, title, icon }) => ({\n text: title ?? url,\n href: url,\n Icon: iconResolver(icon),\n }))}\n />\n )}\n </InfoCard>\n );\n};\n"],"names":["ENTITY_YAML","useStyles","makeStyles","theme","code","borderRadius","margin","spacing","background","palette","type","common","white","name","EntityLinksEmptyState","classes","Typography","variant","div","className","CodeSnippet","text","language","showLineNumbers","highlightedNumbers","customStyle","fontSize","Button","color","target","href","EntityLinksCard","props","entity","cols","undefined","useEntity","app","useApp","iconResolver","key","getSystemIcon","LanguageIcon","links","metadata","InfoCard","title","length","LinksGridList","items","map","url","icon","Icon"],"sourceRoot":""}