@techdocs/cli 0.0.0-nightly-202111282332 → 0.0.0-nightly-2021112922954

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,13 +1,13 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-202111282332
3
+ ## 0.0.0-nightly-2021112922954
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - 8fbc988bfc: remove internal and inline CSS from index.html
8
8
  - Updated dependencies
9
- - @backstage/backend-common@0.0.0-nightly-202111282332
10
- - @backstage/techdocs-common@0.0.0-nightly-202111282332
9
+ - @backstage/techdocs-common@0.0.0-nightly-2021112922954
10
+ - @backstage/backend-common@0.0.0-nightly-2021112922954
11
11
 
12
12
  ## 0.8.9
13
13
 
@@ -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.84468148.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.84468148.js"></script><script defer="defer" src="/static/main.84468148.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.de21a382.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.de21a382.js"></script><script defer="defer" src="/static/main.de21a382.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(23695),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.9ed0aecb.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/6105.9ed0aecb.chunk.js","mappings":"qRAsBO,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":""}