@techdocs/cli 0.8.9 → 0.8.10
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 +9 -0
- package/dist/index.cjs.js +1 -1
- package/dist/techdocs-preview-bundle/.config-schema.json +21 -6
- package/dist/techdocs-preview-bundle/index.html +1 -3
- package/dist/techdocs-preview-bundle/static/3825.93a6ad0c.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/3825.93a6ad0c.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/6105.b519076e.chunk.js +2 -0
- package/dist/techdocs-preview-bundle/static/6105.b519076e.chunk.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/{main.c65958ee.js → main.045916e2.js} +2 -2
- package/dist/techdocs-preview-bundle/static/main.045916e2.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/{module-material-table.9755327e.js → module-material-table.ffd83fbb.js} +1 -1
- package/dist/techdocs-preview-bundle/static/{module-material-table.9755327e.js.map → module-material-table.ffd83fbb.js.map} +1 -1
- package/dist/techdocs-preview-bundle/static/module-material-ui.ecd3d63b.js +3 -0
- package/dist/techdocs-preview-bundle/static/{module-material-ui.ed23d76f.js.LICENSE.txt → module-material-ui.ecd3d63b.js.LICENSE.txt} +0 -0
- package/dist/techdocs-preview-bundle/static/module-material-ui.ecd3d63b.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/{runtime.c65958ee.js → runtime.045916e2.js} +2 -2
- package/dist/techdocs-preview-bundle/static/runtime.045916e2.js.map +1 -0
- package/dist/techdocs-preview-bundle/static/vendor.045916e2.js +3 -0
- package/dist/techdocs-preview-bundle/static/{vendor.c65958ee.js.LICENSE.txt → vendor.045916e2.js.LICENSE.txt} +0 -0
- package/dist/techdocs-preview-bundle/static/vendor.045916e2.js.map +1 -0
- package/package.json +5 -5
- package/dist/techdocs-preview-bundle/static/main.c65958ee.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/module-material-ui.ed23d76f.js +0 -3
- package/dist/techdocs-preview-bundle/static/module-material-ui.ed23d76f.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/runtime.c65958ee.js.map +0 -1
- package/dist/techdocs-preview-bundle/static/vendor.c65958ee.js +0 -3
- package/dist/techdocs-preview-bundle/static/vendor.c65958ee.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
+
## 0.8.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8fbc988bfc: remove internal and inline CSS from index.html
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @backstage/techdocs-common@0.11.2
|
|
10
|
+
- @backstage/backend-common@0.10.1
|
|
11
|
+
|
|
3
12
|
## 0.8.9
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -274,6 +274,19 @@
|
|
|
274
274
|
"requestUrl": {
|
|
275
275
|
"visibility": "frontend",
|
|
276
276
|
"type": "string"
|
|
277
|
+
},
|
|
278
|
+
"sanitizer": {
|
|
279
|
+
"type": "object",
|
|
280
|
+
"properties": {
|
|
281
|
+
"allowedIframeHosts": {
|
|
282
|
+
"description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
|
|
283
|
+
"visibility": "frontend",
|
|
284
|
+
"type": "array",
|
|
285
|
+
"items": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
277
290
|
}
|
|
278
291
|
},
|
|
279
292
|
"required": [
|
|
@@ -484,11 +497,16 @@
|
|
|
484
497
|
"items": {
|
|
485
498
|
"type": "object",
|
|
486
499
|
"properties": {
|
|
487
|
-
"
|
|
488
|
-
"description": "
|
|
500
|
+
"endpoint": {
|
|
501
|
+
"description": "AWS Endpoint.\nThe endpoint URI to send requests to. The default endpoint is built from the configured region.",
|
|
489
502
|
"visibility": "frontend",
|
|
490
503
|
"type": "string"
|
|
491
504
|
},
|
|
505
|
+
"s3ForcePathStyle": {
|
|
506
|
+
"description": "Whether to use path style URLs when communicating with S3.\nDefaults to false.\nThis allows providers like LocalStack, Minio and Wasabi (and possibly others) to be used.",
|
|
507
|
+
"visibility": "frontend",
|
|
508
|
+
"type": "boolean"
|
|
509
|
+
},
|
|
492
510
|
"accessKeyId": {
|
|
493
511
|
"description": "Account access key used to authenticate requests.",
|
|
494
512
|
"visibility": "backend",
|
|
@@ -504,10 +522,7 @@
|
|
|
504
522
|
"visibility": "backend",
|
|
505
523
|
"type": "string"
|
|
506
524
|
}
|
|
507
|
-
}
|
|
508
|
-
"required": [
|
|
509
|
-
"host"
|
|
510
|
-
]
|
|
525
|
+
}
|
|
511
526
|
}
|
|
512
527
|
}
|
|
513
528
|
}
|
|
@@ -1,3 +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"/><
|
|
2
|
-
min-height: 100%;
|
|
3
|
-
}</style><title>Techdocs Preview App</title><script defer="defer" src="/static/runtime.c65958ee.js"></script><script defer="defer" src="/static/module-material-ui.ed23d76f.js"></script><script defer="defer" src="/static/module-lodash.5fc3fe8a.js"></script><script defer="defer" src="/static/module-date-fns.c7ff5eb2.js"></script><script defer="defer" src="/static/module-ajv.1375df52.js"></script><script defer="defer" src="/static/module-material-table.9755327e.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.da6c1d82.js"></script><script defer="defer" src="/static/module-hot-loader.ec8a2690.js"></script><script defer="defer" src="/static/vendor.c65958ee.js"></script><script defer="defer" src="/static/main.c65958ee.js"></script></head><body style="margin: 0"><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.045916e2.js"></script><script defer="defer" src="/static/module-material-ui.ecd3d63b.js"></script><script defer="defer" src="/static/module-lodash.5fc3fe8a.js"></script><script defer="defer" src="/static/module-date-fns.c7ff5eb2.js"></script><script defer="defer" src="/static/module-ajv.1375df52.js"></script><script defer="defer" src="/static/module-material-table.ffd83fbb.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.da6c1d82.js"></script><script defer="defer" src="/static/module-hot-loader.ec8a2690.js"></script><script defer="defer" src="/static/vendor.045916e2.js"></script><script defer="defer" src="/static/main.045916e2.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkembedded_techdocs_app=self.webpackChunkembedded_techdocs_app||[]).push([[3825],{43825:function(e,c,n){n.r(c),n.d(c,{SidebarSearchModal:function(){return l}});var t=n(2784),a=n(21853),o=n(41682),r=n(65678),d=n(22313);const l=e=>{const{open:c,toggleModal:n}=(0,d.Rx)(),l=e.icon?e.icon:a.Z;return t.createElement(t.Fragment,null,t.createElement(o.SidebarItem,{className:"search-icon",icon:l,text:"Search",onClick:n}),t.createElement(r.s,{open:c,toggleModal:n}))}}}]);
|
|
2
|
+
//# sourceMappingURL=3825.93a6ad0c.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/3825.93a6ad0c.chunk.js","mappings":"uPA0BO,MAAMA,EAAsBC,IACjC,MAAM,KAAEC,EAAI,YAAEC,IAAgB,UACxBC,EAAOH,EAAMI,KAAOJ,EAAMI,KAAOC,EAAA,EAEvC,OACE,gBAAoB,WAAgB,KAChC,gBAAoB,EAAAC,YAAa,CACjCC,UAAW,cACXH,KAAMD,EACNK,KAAM,SACNC,QAASP,IAET,gBAAoBQ,EAAA,EAAa,CAAET,KAAMA,EAAMC,YAAaA","sources":["webpack://embedded-techdocs-app/../../plugins/search/src/components/SidebarSearchModal/SidebarSearchModal.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 */\nimport React from 'react';\nimport SearchIcon from '@material-ui/icons/Search';\nimport { SidebarItem } from '@backstage/core-components';\n\nimport { SearchModal } from '../SearchModal';\nimport { useSearch } from '../SearchContext';\n\n\n\n\n\nexport const SidebarSearchModal = (props) => {\n const { open, toggleModal } = useSearch();\n const Icon = props.icon ? props.icon : SearchIcon;\n\n return (\n React.createElement(React.Fragment, null\n , React.createElement(SidebarItem, {\n className: \"search-icon\",\n icon: Icon,\n text: \"Search\",\n onClick: toggleModal,}\n )\n , React.createElement(SearchModal, { open: open, toggleModal: toggleModal,} )\n )\n );\n};\n"],"names":["SidebarSearchModal","props","open","toggleModal","Icon","icon","Search","SidebarItem","className","text","onClick","SearchModal"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkembedded_techdocs_app=self.webpackChunkembedded_techdocs_app||[]).push([[6105],{46105:function(e,a,r){r.r(a),r.d(a,{HomePageSearchBar:function(){return i}});var s=r(2784),c=r(79692),t=r(1795),u=r(19126),n=r.n(u),o=r(10289),d=r(20863),h=r(36964);const l=(0,c.Z)({searchBar:{border:"1px solid #555",borderRadius:"6px",fontSize:"1.5em"}}),i=({className:e,...a})=>{const r=l(),[c,u]=(0,s.useState)(""),i=(()=>{const e=(0,h.useRouteRef)(d._Z),a=(0,o.s0)();return(0,s.useCallback)((({query:r})=>{const s=n().stringify({query:r},{addQueryPrefix:!0});a(`${e()}${s}`)}),[a,e])})(),b=e?`${r.searchBar} ${e}`:r.searchBar,p=(0,s.useCallback)((e=>{u(e)}),[u]);return s.createElement(t.SearchBarBase,{className:b,value:c,onSubmit:()=>{i({query:c})},onChange:p,...a})}}}]);
|
|
2
|
+
//# sourceMappingURL=6105.b519076e.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/6105.b519076e.chunk.js","mappings":"oRAsBO,MCADA,GAAY,EAAAC,EAAA,GAAW,CAC3BC,UAAW,CACTC,OAAQ,iBACRC,aAAc,MACdC,SAAU,WAkBDC,EAAoB,EAC/BC,UAAWC,KACRC,MAEH,MAAMC,EAAUV,KACTW,EAAOC,IAAY,IAAAC,UAAS,IAC7BC,ED5B0B,MAChC,MAAMC,GAAc,IAAAC,aAAY,MAC1BC,GAAW,UACjB,OAAO,IAAAC,cACL,EAAGP,MAAAA,MACD,MAAMQ,EAAc,cAAa,CAAER,MAAAA,GAAS,CAAES,gBAAgB,IAE9DH,EAAS,GAAGF,MAAgBI,OAE9B,CAACF,EAAUF,KCmBQM,GAEfd,EAAYC,EACd,GAAGE,EAAQR,aAAaM,IACxBE,EAAQR,UAMNoB,GAAe,IAAAJ,cACnBK,IACEX,EAASW,KAEX,CAACX,IAGH,OACE,gBAAoBY,EAAAC,cAAe,CACjClB,UAAWA,EACXgB,MAAOZ,EACPe,SAfiB,KACnBZ,EAAa,CAAEH,MAAAA,KAebgB,SAAUL,KACPb","sources":["webpack://embedded-techdocs-app/../../plugins/search/src/components/util.ts","webpack://embedded-techdocs-app/../../plugins/search/src/components/HomePageComponent/HomePageSearchBar.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 */\nimport qs from 'qs';\nimport { useCallback } from 'react';\nimport { useNavigate } from 'react-router-dom';\nimport { rootRouteRef } from '../plugin';\n\nimport { useRouteRef } from '@backstage/core-plugin-api';\n\nexport const useNavigateToQuery = () => {\n const searchRoute = useRouteRef(rootRouteRef);\n const navigate = useNavigate();\n return useCallback(\n ({ query }) => {\n const queryString = qs.stringify({ query }, { addQueryPrefix: true });\n\n navigate(`${searchRoute()}${queryString}`);\n },\n [navigate, searchRoute],\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, { useCallback, useState } from 'react';\nimport { makeStyles } from '@material-ui/core/styles';\n\nimport { SearchBarBase, } from '../SearchBar';\nimport { useNavigateToQuery } from '../util';\n\nconst useStyles = makeStyles({\n searchBar: {\n border: '1px solid #555',\n borderRadius: '6px',\n fontSize: '1.5em',\n },\n});\n\n/**\n * Props for {@link HomePageSearchBar}.\n *\n * @public\n */\n\n\n\n\n/**\n * The search bar created specifically for the composable home page\n *\n * @public\n */\nexport const HomePageSearchBar = ({\n className: defaultClassName,\n ...props\n}) => {\n const classes = useStyles();\n const [query, setQuery] = useState('');\n const handleSearch = useNavigateToQuery();\n\n const className = defaultClassName\n ? `${classes.searchBar} ${defaultClassName}`\n : classes.searchBar;\n\n const handleSubmit = () => {\n handleSearch({ query });\n };\n\n const handleChange = useCallback(\n value => {\n setQuery(value);\n },\n [setQuery],\n );\n\n return (\n React.createElement(SearchBarBase, {\n className: className,\n value: query,\n onSubmit: handleSubmit,\n onChange: handleChange,\n ...props,}\n )\n );\n};\n"],"names":["useStyles","makeStyles","searchBar","border","borderRadius","fontSize","HomePageSearchBar","className","defaultClassName","props","classes","query","setQuery","useState","handleSearch","searchRoute","useRouteRef","navigate","useCallback","queryString","addQueryPrefix","useNavigateToQuery","handleChange","value","SearchBar","SearchBarBase","onSubmit","onChange"],"sourceRoot":""}
|