@techdocs/cli 1.8.2-next.0 → 1.8.2-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/dist/index.cjs.js CHANGED
@@ -213,7 +213,7 @@ function registerCommands(program) {
213
213
  "--preview-app-port can only be used together with --preview-app-bundle-path"
214
214
  );
215
215
  }
216
- }).action(lazy(() => Promise.resolve().then(function () { return require('./cjs/serve-a43e7800.cjs.js'); }).then((m) => m.default)));
216
+ }).action(lazy(() => Promise.resolve().then(function () { return require('./cjs/serve-c333b152.cjs.js'); }).then((m) => m.default)));
217
217
  }
218
218
  function lazy(getActionFunc) {
219
219
  return async (...args) => {
@@ -228,7 +228,7 @@ function lazy(getActionFunc) {
228
228
  };
229
229
  }
230
230
 
231
- var version = "1.8.2-next.0";
231
+ var version = "1.8.2-next.1";
232
232
 
233
233
  const main = (argv) => {
234
234
  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.8.2-next.0",
4
+ "version": "1.8.2-next.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -35,7 +35,7 @@
35
35
  "techdocs-cli": "bin/techdocs-cli"
36
36
  },
37
37
  "devDependencies": {
38
- "@backstage/cli": "^0.25.2-next.0",
38
+ "@backstage/cli": "^0.25.2-next.1",
39
39
  "@types/commander": "^2.12.2",
40
40
  "@types/fs-extra": "^9.0.6",
41
41
  "@types/http-proxy": "^1.17.4",
@@ -57,11 +57,11 @@
57
57
  "ext": "ts"
58
58
  },
59
59
  "dependencies": {
60
- "@backstage/backend-common": "^0.21.0-next.0",
61
- "@backstage/catalog-model": "^1.4.3",
60
+ "@backstage/backend-common": "^0.21.0-next.1",
61
+ "@backstage/catalog-model": "^1.4.4-next.0",
62
62
  "@backstage/cli-common": "^0.1.13",
63
63
  "@backstage/config": "^1.1.1",
64
- "@backstage/plugin-techdocs-node": "^1.11.2-next.0",
64
+ "@backstage/plugin-techdocs-node": "^1.11.2-next.1",
65
65
  "@types/dockerode": "^3.3.0",
66
66
  "commander": "^9.1.0",
67
67
  "dockerode": "^3.3.1",
@@ -1,3 +0,0 @@
1
- "use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[7670],{27670:function(u,o,s){s.r(o),s.d(o,{CatalogSearchResultListItem:function(){return g}});var e=s(52322),v=s(2784),d=s(79692),r=s(86136),m=s(49378),h=s(62774),a=s(7089),x=s(98864),c=s(76079);const f=(0,d.Z)({item:{display:"flex"},flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",wordBreak:"break-all",marginBottom:"1rem"}},{name:"CatalogSearchResultListItem"});function g(i){const t=i.result,l=i.highlight,n=f();return t?(0,e.jsxs)("div",{className:n.item,children:[i.icon&&(0,e.jsx)(r.Z,{children:typeof i.icon=="function"?i.icon(t):i.icon}),(0,e.jsxs)("div",{className:n.flexContainer,children:[(0,e.jsx)(m.Z,{className:n.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,e.jsx)(x.rU,{noTrack:!0,to:t.location,children:l!=null&&l.fields.title?(0,e.jsx)(c.F,{text:l.fields.title,preTag:l.preTag,postTag:l.postTag}):t.title}),secondary:l!=null&&l.fields.text?(0,e.jsx)(c.F,{text:l.fields.text,preTag:l.preTag,postTag:l.postTag}):t.text}),(0,e.jsxs)(h.Z,{children:[t.kind&&(0,e.jsx)(a.Z,{label:`Kind: ${t.kind}`,size:"small"}),t.type&&(0,e.jsx)(a.Z,{label:`Type: ${t.type}`,size:"small"}),t.lifecycle&&(0,e.jsx)(a.Z,{label:`Lifecycle: ${t.lifecycle}`,size:"small"}),t.owner&&(0,e.jsx)(a.Z,{label:`Owner: ${t.owner}`,size:"small"})]})]})]}):null}}}]);})();
2
-
3
- //# sourceMappingURL=7670.ecbfc9f3.chunk.js.map
@@ -1 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KAAK,O,GACzD1B,EAAO4B,cACN,OAACJ,EAAAA,EAAIA,CAACC,MAAO,cAAczB,EAAO4B,YAAaF,KAAK,O,GAErD1B,EAAO6B,UACN,OAACL,EAAAA,EAAIA,CAACC,MAAO,UAAUzB,EAAO6B,QAASH,KAAK,O,YA7ClC,IAmDtB,C","sources":["webpack://techdocs-cli-embedded-app/../../plugins/catalog/src/components/CatalogSearchResultListItem/CatalogSearchResultListItem.tsx"],"sourcesContent":["/*\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, { ReactNode } from 'react';\nimport {\n Box,\n Chip,\n ListItemIcon,\n ListItemText,\n makeStyles,\n} from '@material-ui/core';\nimport { Link } from '@backstage/core-components';\nimport {\n IndexableDocument,\n ResultHighlight,\n} from '@backstage/plugin-search-common';\nimport { HighlightedSearchResultText } from '@backstage/plugin-search-react';\n\nconst useStyles = makeStyles(\n {\n item: {\n display: 'flex',\n },\n flexContainer: {\n flexWrap: 'wrap',\n },\n itemText: {\n width: '100%',\n wordBreak: 'break-all',\n marginBottom: '1rem',\n },\n },\n { name: 'CatalogSearchResultListItem' },\n);\n\n/**\n * Props for {@link CatalogSearchResultListItem}.\n *\n * @public\n */\nexport interface CatalogSearchResultListItemProps {\n icon?: ReactNode | ((result: IndexableDocument) => ReactNode);\n result?: IndexableDocument;\n highlight?: ResultHighlight;\n rank?: number;\n}\n\n/** @public */\nexport function CatalogSearchResultListItem(\n props: CatalogSearchResultListItemProps,\n) {\n const result = props.result as any;\n const highlight = props.highlight as ResultHighlight;\n\n const classes = useStyles();\n\n if (!result) return null;\n\n return (\n <div className={classes.item}>\n {props.icon && (\n <ListItemIcon>\n {typeof props.icon === 'function' ? props.icon(result) : props.icon}\n </ListItemIcon>\n )}\n <div className={classes.flexContainer}>\n <ListItemText\n className={classes.itemText}\n primaryTypographyProps={{ variant: 'h6' }}\n primary={\n <Link noTrack to={result.location}>\n {highlight?.fields.title ? (\n <HighlightedSearchResultText\n text={highlight.fields.title}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.title\n )}\n </Link>\n }\n secondary={\n highlight?.fields.text ? (\n <HighlightedSearchResultText\n text={highlight.fields.text}\n preTag={highlight.preTag}\n postTag={highlight.postTag}\n />\n ) : (\n result.text\n )\n }\n />\n <Box>\n {result.kind && <Chip label={`Kind: ${result.kind}`} size=\"small\" />}\n {result.type && <Chip label={`Type: ${result.type}`} size=\"small\" />}\n {result.lifecycle && (\n <Chip label={`Lifecycle: ${result.lifecycle}`} size=\"small\" />\n )}\n {result.owner && (\n <Chip label={`Owner: ${result.owner}`} size=\"small\" />\n )}\n </Box>\n </div>\n </div>\n );\n}\n"],"names":["useStyles","makeStyles","item","display","flexContainer","flexWrap","itemText","width","wordBreak","marginBottom","name","CatalogSearchResultListItem","props","result","highlight","classes","div","className","icon","ListItemIcon","ListItemText","primaryTypographyProps","variant","primary","Link","noTrack","to","location","fields","title","HighlightedSearchResultText","text","preTag","postTag","secondary","Box","kind","Chip","label","size","type","lifecycle","owner"],"sourceRoot":""}