@techdocs/cli 1.1.3-next.0 → 1.1.4-next.0
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 +29 -0
- package/dist/cjs/{PublisherConfig-7a0dc71c.cjs.js → PublisherConfig-0ea58467.cjs.js} +9 -3
- package/dist/cjs/{PublisherConfig-7a0dc71c.cjs.js.map → PublisherConfig-0ea58467.cjs.js.map} +1 -1
- package/dist/cjs/{generate-b637bb78.cjs.js → generate-b897bd89.cjs.js} +6 -4
- package/dist/cjs/generate-b897bd89.cjs.js.map +1 -0
- package/dist/cjs/{migrate-122ec4bf.cjs.js → migrate-62035c68.cjs.js} +6 -4
- package/dist/cjs/{migrate-122ec4bf.cjs.js.map → migrate-62035c68.cjs.js.map} +1 -1
- package/dist/cjs/{mkdocs-3c3898e8.cjs.js → mkdocs-1961b6ea.cjs.js} +3 -3
- package/dist/cjs/{mkdocs-3c3898e8.cjs.js.map → mkdocs-1961b6ea.cjs.js.map} +1 -1
- package/dist/cjs/{mkdocsServer-0af6527d.cjs.js → mkdocsServer-f7081578.cjs.js} +30 -24
- package/dist/cjs/{mkdocsServer-0af6527d.cjs.js.map → mkdocsServer-f7081578.cjs.js.map} +1 -1
- package/dist/cjs/{publish-efa348a5.cjs.js → publish-af5607e2.cjs.js} +3 -3
- package/dist/cjs/{publish-efa348a5.cjs.js.map → publish-af5607e2.cjs.js.map} +1 -1
- package/dist/cjs/{serve-48337ec4.cjs.js → serve-0818dbae.cjs.js} +47 -31
- package/dist/cjs/{serve-48337ec4.cjs.js.map → serve-0818dbae.cjs.js.map} +1 -1
- package/dist/cjs/{utility-51f4a306.cjs.js → utility-647ad232.cjs.js} +4 -2
- package/dist/cjs/{utility-51f4a306.cjs.js.map → utility-647ad232.cjs.js.map} +1 -1
- package/dist/embedded-app/.config-schema.json +10 -0
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/{1553.09ef0e28.chunk.js → 1553.c2a9eb50.chunk.js} +2 -2
- package/dist/embedded-app/static/1553.c2a9eb50.chunk.js.map +1 -0
- package/dist/embedded-app/static/{2426.56f057f3.chunk.js → 2426.32fc1ca1.chunk.js} +2 -2
- package/dist/embedded-app/static/2426.32fc1ca1.chunk.js.map +1 -0
- package/dist/embedded-app/static/3555.f3a9371e.chunk.js +8 -0
- package/dist/embedded-app/static/3555.f3a9371e.chunk.js.map +1 -0
- package/dist/embedded-app/static/{390.0d686030.chunk.js → 390.74a27040.chunk.js} +2 -2
- package/dist/embedded-app/static/390.74a27040.chunk.js.map +1 -0
- package/dist/embedded-app/static/{4022.7b5d6caf.chunk.js → 4022.ca590614.chunk.js} +2 -2
- package/dist/embedded-app/static/4022.ca590614.chunk.js.map +1 -0
- package/dist/embedded-app/static/4949.bffcfed7.chunk.js +3 -0
- package/dist/embedded-app/static/4949.bffcfed7.chunk.js.map +1 -0
- package/dist/embedded-app/static/5162.95e4bb5d.chunk.js +3 -0
- package/dist/embedded-app/static/5162.95e4bb5d.chunk.js.map +1 -0
- package/dist/embedded-app/static/{6235.8385fd0b.chunk.js → 6235.61c00d19.chunk.js} +2 -2
- package/dist/embedded-app/static/6235.61c00d19.chunk.js.map +1 -0
- package/dist/embedded-app/static/{6583.19098eda.chunk.js → 6583.492e5219.chunk.js} +2 -2
- package/dist/embedded-app/static/6583.492e5219.chunk.js.map +1 -0
- package/dist/embedded-app/static/{7110.b2c2b46c.chunk.js → 7110.766c71fc.chunk.js} +2 -2
- package/dist/embedded-app/static/7110.766c71fc.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8061.411cf8de.chunk.js → 8061.f5e20bb7.chunk.js} +2 -2
- package/dist/embedded-app/static/8061.f5e20bb7.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8718.b6fd1dca.chunk.js → 8718.2becf372.chunk.js} +2 -2
- package/dist/embedded-app/static/8718.2becf372.chunk.js.map +1 -0
- package/dist/embedded-app/static/{8792.bd5eec10.chunk.js → 8792.6f60e67c.chunk.js} +2 -2
- package/dist/embedded-app/static/8792.6f60e67c.chunk.js.map +1 -0
- package/dist/embedded-app/static/{9028.afacb85a.chunk.js → 9028.1e31ab6a.chunk.js} +2 -2
- package/dist/embedded-app/static/9028.1e31ab6a.chunk.js.map +1 -0
- package/dist/embedded-app/static/main.77934963.js +487 -0
- package/dist/embedded-app/static/main.77934963.js.map +1 -0
- package/dist/embedded-app/static/module-ajv.f2ae340e.js.map +1 -1
- package/dist/embedded-app/static/module-date-fns.667c4862.js.map +1 -1
- package/dist/embedded-app/static/module-hot-loader.baa19dda.js.map +1 -1
- package/dist/embedded-app/static/module-jss.df150ef8.js.map +1 -1
- package/dist/embedded-app/static/module-lodash.32f2edbb.js.map +1 -1
- package/dist/embedded-app/static/module-luxon.ee0def5d.js +3 -0
- package/dist/embedded-app/static/module-luxon.ee0def5d.js.map +1 -0
- package/dist/embedded-app/static/module-material-table.cd3af251.js.map +1 -1
- package/dist/embedded-app/static/{module-material-ui.1e05f502.js → module-material-ui.cd8dff4a.js} +11 -11
- package/dist/embedded-app/static/module-material-ui.cd8dff4a.js.map +1 -0
- package/dist/embedded-app/static/module-react-beautiful-dnd.6085a9b0.js.map +1 -1
- package/dist/embedded-app/static/module-yaml.cef9da5e.js +136 -0
- package/dist/embedded-app/static/module-yaml.cef9da5e.js.map +1 -0
- package/dist/embedded-app/static/module-zod.fe17cc67.js +3 -0
- package/dist/embedded-app/static/module-zod.fe17cc67.js.map +1 -0
- package/dist/embedded-app/static/react-syntax-highlighter/lowlight-import.6d99819e.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_abnf.e39098ec.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_accesslog.f0866c63.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_actionscript.07a8cb8b.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ada.cabf0da1.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_angelscript.a3a8277d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_apache.ca80f87c.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_applescript.135bfeaa.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_arcade.26715cf0.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_arduino.222eae4d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_armasm.36438d34.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_asciidoc.2f5b7895.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_aspectj.2b57cc97.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_autohotkey.e3c8bfdd.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_autoit.147f6883.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_avrasm.1c4bfd59.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_awk.ac969aa7.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_axapta.fd64947c.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_bash.0b9ed769.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_basic.eccb9aa9.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_bnf.fe69e953.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_brainfuck.ee6d6d18.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_c.3c6326f1.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cLike.3e97e143.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cal.4e11b53a.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_capnproto.85379200.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ceylon.4a7a71f8.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_clean.387c63bc.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_clojure.0dceed35.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_clojureRepl.9dabb11c.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cmake.db17d430.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_coffeescript.f6d8e1a0.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_coq.9042b6b2.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cos.e50bcc7d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_cpp.82d44ead.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_crmsh.d381eca6.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_crystal.272a9559.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_csharp.d3c472c1.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_csp.d4ccbf98.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_css.0a9e5a1c.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_d.94da0b62.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dart.3786913e.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_delphi.94507fa8.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_diff.c75af221.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_django.c900f58e.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dns.1dd8382b.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dockerfile.a72872c7.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dos.fa8d03f3.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dsconfig.c5c47576.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dts.7b510c64.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_dust.8c2deb45.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ebnf.11d9c7cc.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_elixir.3904fcdc.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_elm.eba0f5f3.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_erb.e8306333.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_erlang.bd9dfabc.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_erlangRepl.81bf896d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_excel.11a999a4.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_fix.8fa1382d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_flix.f9581318.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_fortran.82f42614.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_fsharp.1ab23dc7.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gams.f8848957.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gauss.dc02450b.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gcode.2898dc2c.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gherkin.d1d5658b.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_glsl.3293da06.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gml.9e71221f.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_go.8db77f58.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_golo.f5a950c4.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_gradle.e2abba03.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_groovy.b688ce0f.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_haml.7c96773e.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_handlebars.2b1aa2f3.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_haskell.391c5d81.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_haxe.c3248588.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_hsp.7c51613c.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_htmlbars.29ebeff4.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_http.0d666e71.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_hy.a7c3ac6d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_inform7.8b3a856c.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ini.ecdd651d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_irpf90.fb690b85.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_isbl.00db46b1.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_java.9a95a2be.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_javascript.9dce5c58.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_jbossCli.5c16ea99.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_json.15050774.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_julia.838f4b42.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_juliaRepl.fe1b93bd.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_kotlin.e1b0b375.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lasso.802249c5.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_latex.bc3d17c7.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ldif.bbef1e04.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_leaf.5bd76867.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_less.7deafe1c.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lisp.d6ae9322.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_livecodeserver.86c42558.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_livescript.e488203b.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_llvm.c255e5d7.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lsl.6a316349.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_lua.c95335ca.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_makefile.f2c5bd60.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_markdown.6464cedd.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mathematica.2e443797.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_matlab.4b560b02.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_maxima.69619b02.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mel.9b354734.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mercury.5613c599.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mipsasm.7281c70c.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mizar.d4e16722.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_mojolicious.dcd5722f.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_monkey.7ef13093.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_moonscript.2d227b16.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_n1ql.dc787036.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nginx.2c25fa32.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nim.b7cc093e.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nix.14ee6a41.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nodeRepl.e51239c3.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_nsis.42bd0ec6.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_objectivec.4d2b6b78.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ocaml.71bd6857.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_oneC.6e9bd373.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_openscad.049274c0.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_oxygene.55cfb5e8.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_parser3.d2c708be.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_perl.8c1aa06b.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pf.0223cc81.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pgsql.77178bf9.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_php.bad25c03.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_phpTemplate.d7121bcf.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_plaintext.6313f5e4.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pony.e09a7a8f.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_powershell.d5b5c33d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_processing.65e160b6.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_profile.f852c59d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_prolog.f397de12.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_properties.fd1db466.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_protobuf.8ab8a533.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_puppet.537bb714.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_purebasic.1d7e0865.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_python.4824cc5a.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_pythonRepl.ae681e7d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_q.35cb97bc.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_qml.2cbe5345.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_r.7b8f8566.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_reasonml.740d48de.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_rib.28f71cc9.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_roboconf.a3dfe5d0.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_routeros.b3d0aad6.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_rsl.27f27574.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ruby.45e641c6.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_ruleslanguage.cb817a76.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_rust.f82df236.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sas.111d6691.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scala.d6161773.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scheme.df9e0798.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scilab.0f5a4588.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_scss.98065d4c.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_shell.1528656a.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_smali.3bf7bbf8.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_smalltalk.79718255.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sml.ff9a0389.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sqf.7cf62869.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sql.80fd4019.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_sqlMore.3f7789bb.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_stan.262d2dee.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_stata.87f07d4d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_step21.db98e52e.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_stylus.406058a9.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_subunit.ce1af113.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_swift.f2a2cdba.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_taggerscript.f4bc1bb5.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_tap.367ea734.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_tcl.802ccc02.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_thrift.10b7ec1d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_tp.3646c41b.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_twig.f866e314.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_typescript.e4681d1d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vala.4f6422d1.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vbnet.dec3a738.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vbscript.612b911b.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vbscriptHtml.3c097556.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_verilog.914ae836.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vhdl.6f7c3028.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_vim.a3a567f0.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_x86asm.ac1eeb4d.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_xl.dec26abf.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_xml.befe59df.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_xquery.73a992c2.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_yaml.031487c1.chunk.js.map +1 -1
- package/dist/embedded-app/static/react-syntax-highlighter_languages_highlight_zephir.14d469e9.chunk.js.map +1 -1
- package/dist/embedded-app/static/{runtime.ca83e3a7.js → runtime.77934963.js} +2 -2
- package/dist/embedded-app/static/runtime.77934963.js.map +1 -0
- package/dist/embedded-app/static/vendor.77934963.js +102 -0
- package/dist/embedded-app/static/vendor.77934963.js.map +1 -0
- package/dist/index.cjs.js +152 -6
- package/dist/index.cjs.js.map +1 -1
- package/package.json +7 -7
- package/dist/cjs/generate-b637bb78.cjs.js.map +0 -1
- package/dist/embedded-app/static/1553.09ef0e28.chunk.js.map +0 -1
- package/dist/embedded-app/static/1959.9f791e1b.chunk.js +0 -8
- package/dist/embedded-app/static/1959.9f791e1b.chunk.js.map +0 -1
- package/dist/embedded-app/static/2426.56f057f3.chunk.js.map +0 -1
- package/dist/embedded-app/static/3860.30afe880.chunk.js +0 -3
- package/dist/embedded-app/static/3860.30afe880.chunk.js.map +0 -1
- package/dist/embedded-app/static/390.0d686030.chunk.js.map +0 -1
- package/dist/embedded-app/static/4022.7b5d6caf.chunk.js.map +0 -1
- package/dist/embedded-app/static/6235.8385fd0b.chunk.js.map +0 -1
- package/dist/embedded-app/static/6583.19098eda.chunk.js.map +0 -1
- package/dist/embedded-app/static/7110.b2c2b46c.chunk.js.map +0 -1
- package/dist/embedded-app/static/7758.94a98122.chunk.js +0 -3
- package/dist/embedded-app/static/7758.94a98122.chunk.js.map +0 -1
- package/dist/embedded-app/static/8061.411cf8de.chunk.js.map +0 -1
- package/dist/embedded-app/static/8718.b6fd1dca.chunk.js.map +0 -1
- package/dist/embedded-app/static/8792.bd5eec10.chunk.js.map +0 -1
- package/dist/embedded-app/static/9028.afacb85a.chunk.js.map +0 -1
- package/dist/embedded-app/static/main.ca83e3a7.js +0 -487
- package/dist/embedded-app/static/main.ca83e3a7.js.map +0 -1
- package/dist/embedded-app/static/module-material-ui.1e05f502.js.map +0 -1
- package/dist/embedded-app/static/module-yaml.63d08f2d.js +0 -151
- package/dist/embedded-app/static/module-yaml.63d08f2d.js.map +0 -1
- package/dist/embedded-app/static/module-zod.2193e794.js +0 -3
- package/dist/embedded-app/static/module-zod.2193e794.js.map +0 -1
- package/dist/embedded-app/static/runtime.ca83e3a7.js.map +0 -1
- package/dist/embedded-app/static/vendor.ca83e3a7.js +0 -103
- package/dist/embedded-app/static/vendor.ca83e3a7.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var he=Object.defineProperty;var fe=(S,g,c)=>g in S?he(S,g,{enumerable:!0,configurable:!0,writable:!0,value:c}):S[g]=c;var k=(S,g,c)=>(fe(S,typeof g!="symbol"?g+"":g,c),c);(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8718],{98718:function(S,g,c){c.r(g),c.d(g,{RealLogViewer:function(){return de}});var a=c(2784),U=c(10289),v=c(61837),W=c(19353),w=c(7688),D=c(50166),G=c(4903);const E=(0,G.Z)(),I=/\n\r?/g,b=Object.fromEntries(Object.entries({1:e=>({...e,bold:!0}),3:e=>({...e,italic:!0}),4:e=>({...e,underline:!0}),22:({bold:e,...t})=>t,23:({italic:e,...t})=>t,24:({underline:e,...t})=>t,30:e=>({...e,foreground:"black"}),31:e=>({...e,foreground:"red"}),32:e=>({...e,foreground:"green"}),33:e=>({...e,foreground:"yellow"}),34:e=>({...e,foreground:"blue"}),35:e=>({...e,foreground:"magenta"}),36:e=>({...e,foreground:"cyan"}),37:e=>({...e,foreground:"white"}),39:({foreground:e,...t})=>t,90:e=>({...e,foreground:"grey"}),40:e=>({...e,background:"black"}),41:e=>({...e,background:"red"}),42:e=>({...e,background:"green"}),43:e=>({...e,background:"yellow"}),44:e=>({...e,background:"blue"}),45:e=>({...e,background:"magenta"}),46:e=>({...e,background:"cyan"}),47:e=>({...e,background:"white"}),49:({background:e,...t})=>t}).map(([e,t])=>[`\x1B[${e}m`,t]));class L{constructor(t=1,n=[]){k(this,"text");this.lineNumber=t,this.chunks=n,this.text=n.map(s=>s.text).join("").toLocaleLowerCase("en-US")}lastChunk(){return this.chunks[this.chunks.length-1]}replaceLastChunk(t){t&&(this.chunks.splice(this.chunks.length-1,1,...t),this.text=this.chunks.map(n=>n.text).join("").toLocaleLowerCase("en-US"))}}class P{constructor(){k(this,"text","");k(this,"lines",[]);k(this,"processLines",(t,n={},s=1)=>{var l;const o=[];let i=n,r=s,u=0;for(I.lastIndex=0;;){const h=I.exec(t);if(!h){const f=this.processText(t.slice(u),i);return o.push(new L(r,f)),o}const d=t.slice(u,h.index);u=h.index+h[0].length;const p=this.processText(d,i);o.push(new L(r,p)),i=(l=p[p.length-1].modifiers)!=null?l:i,r+=1}});k(this,"processText",(t,n)=>{const s=[];let o=n,i=0;for(E.lastIndex=0;;){const r=E.exec(t);if(!r)return s.push({text:t.slice(i),modifiers:o}),s;const u=t.slice(i,r.index);s.push({text:u,modifiers:o}),i=r.index+r[0].length,o=this.processCode(r[0],o)}});k(this,"processCode",(t,n)=>{var s,o;return(o=(s=b[t])==null?void 0:s.call(b,n))!=null?o:n})}process(t){var n,s,o;if(this.text===t)return this.lines;if(t.startsWith(this.text)){const i=this.lines.length>0?this.lines.length-1:0,r=(n=this.lines[i])!=null?n:new L,u=r.lastChunk(),l=this.processLines(((s=u==null?void 0:u.text)!=null?s:"")+t.slice(this.text.length),u==null?void 0:u.modifiers,r==null?void 0:r.lineNumber);r.replaceLastChunk((o=l[0])==null?void 0:o.chunks),this.lines[i]=r,this.lines.push(...l.slice(1))}else this.lines=this.processLines(t);return this.text=t,this.lines}}var $=c(79692),B=c(41128),C=c(31754),F=c(66054),R=c(81463),M=c(34505),N=c(57186),T=c(32720),A=c(92901),j=c(45410);const z=40,Y=(0,$.Z)(e=>({root:{background:e.palette.background.paper},header:{height:z,display:"flex",alignItems:"center",justifyContent:"flex-end"},log:{fontFamily:'"Monaco", monospace',fontSize:e.typography.pxToRem(12)},line:{position:"relative",whiteSpace:"pre","&:hover":{background:e.palette.action.hover}},lineSelected:{background:e.palette.action.selected,"&:hover":{background:e.palette.action.selected}},lineCopyButton:{position:"absolute",paddingTop:0,paddingBottom:0},lineNumber:{display:"inline-block",textAlign:"end",width:60,marginRight:e.spacing(1),cursor:"pointer"},textHighlight:{background:(0,B.Fq)(e.palette.info.main,.15)},textSelectedHighlight:{background:(0,B.Fq)(e.palette.info.main,.4)},modifierBold:{fontWeight:e.typography.fontWeightBold},modifierItalic:{fontStyle:"italic"},modifierUnderline:{textDecoration:"underline"},modifierForegroundBlack:{color:C.Z.black},modifierForegroundRed:{color:F.Z[500]},modifierForegroundGreen:{color:R.Z[500]},modifierForegroundYellow:{color:M.Z[500]},modifierForegroundBlue:{color:N.Z[500]},modifierForegroundMagenta:{color:T.Z[500]},modifierForegroundCyan:{color:A.Z[500]},modifierForegroundWhite:{color:C.Z.white},modifierForegroundGrey:{color:j.Z[500]},modifierBackgroundBlack:{background:C.Z.black},modifierBackgroundRed:{background:F.Z[500]},modifierBackgroundGreen:{background:R.Z[500]},modifierBackgroundYellow:{background:M.Z[500]},modifierBackgroundBlue:{background:N.Z[500]},modifierBackgroundMagenta:{background:T.Z[500]},modifierBackgroundCyan:{background:A.Z[500]},modifierBackgroundWhite:{background:C.Z.white},modifierBackgroundGrey:{background:j.Z[500]}}),{name:"BackstageLogViewer"});var J=c(72779),K=c.n(J),Q=c(74600),H=c.n(Q);function X(e,t){const n=new Array;if(t.bold&&n.push(e.modifierBold),t.italic&&n.push(e.modifierItalic),t.underline&&n.push(e.modifierUnderline),t.foreground){const s=`modifierForeground${H()(t.foreground)}`;n.push(e[s])}if(t.background){const s=`modifierBackground${H()(t.background)}`;n.push(e[s])}return n.length>0?n.join(" "):void 0}function q(e,t){if(!t||!e.includes(t))return;const n=new Array;let s=0;for(;;){const o=e.indexOf(t,s);if(o===-1)break;const i=o+t.length;n.push({start:o,end:i}),s=i}return n}function _(e,t){const n=q(e.text,t);if(!n)return e.chunks;const s=new Array;let o=0,i=0,r=n[i];for(const u of e.chunks){const{text:l,modifiers:h}=u;if(!r||o+l.length<r.start){s.push(u),o+=l.length;continue}let d=0;for(;r;){const f=Math.max(r.start-o,0);if(f>l.length)break;const x=Math.min(r.end-o,l.length);if(f>d&&s.push({text:l.slice(d,f),modifiers:h}),x>f&&s.push({modifiers:h,highlight:i,text:l.slice(f,x)}),d=x,r.end-o===x)i+=1,r=n[i];else break}d<l.length&&s.push({text:l.slice(d),modifiers:h}),o+=l.length}return s}function ee({line:e,classes:t,searchText:n,highlightResultIndex:s}){const o=(0,a.useMemo)(()=>_(e,n),[e,n]),i=(0,a.useMemo)(()=>o.map(({text:r,modifiers:u,highlight:l},h)=>a.createElement("span",{key:h,className:K()(X(t,u),l!==void 0&&(l===s?t.textSelectedHighlight:t.textHighlight))},r)),[o,s,t]);return a.createElement(a.Fragment,null,i)}var te=c(86619),ne=c(90436),oe=c(48049),se=c(51209),O=c(36444);function re(e){var r;const{resultCount:t,resultIndexStep:n,toggleShouldFilter:s}=e,o=(r=e.resultIndex)!=null?r:0,i=u=>{u.key==="Enter"&&(u.metaKey||u.ctrlKey||u.altKey?s():n(u.shiftKey))};return a.createElement(a.Fragment,null,t!==void 0&&a.createElement(a.Fragment,null,a.createElement(v.Z,{size:"small",onClick:()=>n(!0)},a.createElement(oe.Z,null)),a.createElement(ne.Z,null,Math.min(o+1,t),"/",t),a.createElement(v.Z,{size:"small",onClick:()=>n()},a.createElement(se.Z,null))),a.createElement(te.Z,{size:"small",variant:"standard",placeholder:"Search",value:e.searchInput,onKeyPress:i,onChange:u=>e.setSearchInput(u.target.value)}),a.createElement(v.Z,{size:"small",onClick:s},e.shouldFilter?a.createElement(O.Z,{color:"primary"}):a.createElement(O.Z,{color:"disabled"})))}var le=c(
|
|
1
|
+
"use strict";(()=>{var he=Object.defineProperty;var fe=(S,g,c)=>g in S?he(S,g,{enumerable:!0,configurable:!0,writable:!0,value:c}):S[g]=c;var k=(S,g,c)=>(fe(S,typeof g!="symbol"?g+"":g,c),c);(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8718],{98718:function(S,g,c){c.r(g),c.d(g,{RealLogViewer:function(){return de}});var a=c(2784),U=c(10289),v=c(61837),W=c(19353),w=c(7688),D=c(50166),G=c(4903);const E=(0,G.Z)(),I=/\n\r?/g,b=Object.fromEntries(Object.entries({1:e=>({...e,bold:!0}),3:e=>({...e,italic:!0}),4:e=>({...e,underline:!0}),22:({bold:e,...t})=>t,23:({italic:e,...t})=>t,24:({underline:e,...t})=>t,30:e=>({...e,foreground:"black"}),31:e=>({...e,foreground:"red"}),32:e=>({...e,foreground:"green"}),33:e=>({...e,foreground:"yellow"}),34:e=>({...e,foreground:"blue"}),35:e=>({...e,foreground:"magenta"}),36:e=>({...e,foreground:"cyan"}),37:e=>({...e,foreground:"white"}),39:({foreground:e,...t})=>t,90:e=>({...e,foreground:"grey"}),40:e=>({...e,background:"black"}),41:e=>({...e,background:"red"}),42:e=>({...e,background:"green"}),43:e=>({...e,background:"yellow"}),44:e=>({...e,background:"blue"}),45:e=>({...e,background:"magenta"}),46:e=>({...e,background:"cyan"}),47:e=>({...e,background:"white"}),49:({background:e,...t})=>t}).map(([e,t])=>[`\x1B[${e}m`,t]));class L{constructor(t=1,n=[]){k(this,"text");this.lineNumber=t,this.chunks=n,this.text=n.map(s=>s.text).join("").toLocaleLowerCase("en-US")}lastChunk(){return this.chunks[this.chunks.length-1]}replaceLastChunk(t){t&&(this.chunks.splice(this.chunks.length-1,1,...t),this.text=this.chunks.map(n=>n.text).join("").toLocaleLowerCase("en-US"))}}class P{constructor(){k(this,"text","");k(this,"lines",[]);k(this,"processLines",(t,n={},s=1)=>{var l;const o=[];let i=n,r=s,u=0;for(I.lastIndex=0;;){const h=I.exec(t);if(!h){const f=this.processText(t.slice(u),i);return o.push(new L(r,f)),o}const d=t.slice(u,h.index);u=h.index+h[0].length;const p=this.processText(d,i);o.push(new L(r,p)),i=(l=p[p.length-1].modifiers)!=null?l:i,r+=1}});k(this,"processText",(t,n)=>{const s=[];let o=n,i=0;for(E.lastIndex=0;;){const r=E.exec(t);if(!r)return s.push({text:t.slice(i),modifiers:o}),s;const u=t.slice(i,r.index);s.push({text:u,modifiers:o}),i=r.index+r[0].length,o=this.processCode(r[0],o)}});k(this,"processCode",(t,n)=>{var s,o;return(o=(s=b[t])==null?void 0:s.call(b,n))!=null?o:n})}process(t){var n,s,o;if(this.text===t)return this.lines;if(t.startsWith(this.text)){const i=this.lines.length>0?this.lines.length-1:0,r=(n=this.lines[i])!=null?n:new L,u=r.lastChunk(),l=this.processLines(((s=u==null?void 0:u.text)!=null?s:"")+t.slice(this.text.length),u==null?void 0:u.modifiers,r==null?void 0:r.lineNumber);r.replaceLastChunk((o=l[0])==null?void 0:o.chunks),this.lines[i]=r,this.lines.push(...l.slice(1))}else this.lines=this.processLines(t);return this.text=t,this.lines}}var $=c(79692),B=c(41128),C=c(31754),F=c(66054),R=c(81463),M=c(34505),N=c(57186),T=c(32720),A=c(92901),j=c(45410);const z=40,Y=(0,$.Z)(e=>({root:{background:e.palette.background.paper},header:{height:z,display:"flex",alignItems:"center",justifyContent:"flex-end"},log:{fontFamily:'"Monaco", monospace',fontSize:e.typography.pxToRem(12)},line:{position:"relative",whiteSpace:"pre","&:hover":{background:e.palette.action.hover}},lineSelected:{background:e.palette.action.selected,"&:hover":{background:e.palette.action.selected}},lineCopyButton:{position:"absolute",paddingTop:0,paddingBottom:0},lineNumber:{display:"inline-block",textAlign:"end",width:60,marginRight:e.spacing(1),cursor:"pointer"},textHighlight:{background:(0,B.Fq)(e.palette.info.main,.15)},textSelectedHighlight:{background:(0,B.Fq)(e.palette.info.main,.4)},modifierBold:{fontWeight:e.typography.fontWeightBold},modifierItalic:{fontStyle:"italic"},modifierUnderline:{textDecoration:"underline"},modifierForegroundBlack:{color:C.Z.black},modifierForegroundRed:{color:F.Z[500]},modifierForegroundGreen:{color:R.Z[500]},modifierForegroundYellow:{color:M.Z[500]},modifierForegroundBlue:{color:N.Z[500]},modifierForegroundMagenta:{color:T.Z[500]},modifierForegroundCyan:{color:A.Z[500]},modifierForegroundWhite:{color:C.Z.white},modifierForegroundGrey:{color:j.Z[500]},modifierBackgroundBlack:{background:C.Z.black},modifierBackgroundRed:{background:F.Z[500]},modifierBackgroundGreen:{background:R.Z[500]},modifierBackgroundYellow:{background:M.Z[500]},modifierBackgroundBlue:{background:N.Z[500]},modifierBackgroundMagenta:{background:T.Z[500]},modifierBackgroundCyan:{background:A.Z[500]},modifierBackgroundWhite:{background:C.Z.white},modifierBackgroundGrey:{background:j.Z[500]}}),{name:"BackstageLogViewer"});var J=c(72779),K=c.n(J),Q=c(74600),H=c.n(Q);function X(e,t){const n=new Array;if(t.bold&&n.push(e.modifierBold),t.italic&&n.push(e.modifierItalic),t.underline&&n.push(e.modifierUnderline),t.foreground){const s=`modifierForeground${H()(t.foreground)}`;n.push(e[s])}if(t.background){const s=`modifierBackground${H()(t.background)}`;n.push(e[s])}return n.length>0?n.join(" "):void 0}function q(e,t){if(!t||!e.includes(t))return;const n=new Array;let s=0;for(;;){const o=e.indexOf(t,s);if(o===-1)break;const i=o+t.length;n.push({start:o,end:i}),s=i}return n}function _(e,t){const n=q(e.text,t);if(!n)return e.chunks;const s=new Array;let o=0,i=0,r=n[i];for(const u of e.chunks){const{text:l,modifiers:h}=u;if(!r||o+l.length<r.start){s.push(u),o+=l.length;continue}let d=0;for(;r;){const f=Math.max(r.start-o,0);if(f>l.length)break;const x=Math.min(r.end-o,l.length);if(f>d&&s.push({text:l.slice(d,f),modifiers:h}),x>f&&s.push({modifiers:h,highlight:i,text:l.slice(f,x)}),d=x,r.end-o===x)i+=1,r=n[i];else break}d<l.length&&s.push({text:l.slice(d),modifiers:h}),o+=l.length}return s}function ee({line:e,classes:t,searchText:n,highlightResultIndex:s}){const o=(0,a.useMemo)(()=>_(e,n),[e,n]),i=(0,a.useMemo)(()=>o.map(({text:r,modifiers:u,highlight:l},h)=>a.createElement("span",{key:h,className:K()(X(t,u),l!==void 0&&(l===s?t.textSelectedHighlight:t.textHighlight))},r)),[o,s,t]);return a.createElement(a.Fragment,null,i)}var te=c(86619),ne=c(90436),oe=c(48049),se=c(51209),O=c(36444);function re(e){var r;const{resultCount:t,resultIndexStep:n,toggleShouldFilter:s}=e,o=(r=e.resultIndex)!=null?r:0,i=u=>{u.key==="Enter"&&(u.metaKey||u.ctrlKey||u.altKey?s():n(u.shiftKey))};return a.createElement(a.Fragment,null,t!==void 0&&a.createElement(a.Fragment,null,a.createElement(v.Z,{size:"small",onClick:()=>n(!0)},a.createElement(oe.Z,null)),a.createElement(ne.Z,null,Math.min(o+1,t),"/",t),a.createElement(v.Z,{size:"small",onClick:()=>n()},a.createElement(se.Z,null))),a.createElement(te.Z,{size:"small",variant:"standard",placeholder:"Search",value:e.searchInput,onKeyPress:i,onChange:u=>e.setSearchInput(u.target.value)}),a.createElement(v.Z,{size:"small",onClick:s},e.shouldFilter?a.createElement(O.Z,{color:"primary"}):a.createElement(O.Z,{color:"disabled"})))}var le=c(96686);function ie(e,t){if(!t)return{lines:e};const n=[],s=[];for(const o of e)if(o.text.includes(t)){n.push(o);let i=0,r=0;for(;;){const u=o.text.indexOf(t,i);if(u===-1)break;s.push({lineNumber:o.lineNumber,lineIndex:r++}),i=u+t.length}}return{lines:n,results:s}}function ce(e){var f;const[t,n]=(0,a.useState)(""),s=t.toLocaleLowerCase("en-US"),[o,i]=(0,a.useState)(0),[r,u]=(0,le.O)(!1),l=(0,a.useMemo)(()=>ie(e,s),[e,s]),h=l.results?l.results[Math.min(o,l.results.length-1)]:void 0,d=(f=l.results)==null?void 0:f.length,p=x=>{if(x){if(d!==void 0){const m=Math.min(o-1,d-2);i(m<0?d-1:m)}}else if(d!==void 0){const m=o+1;i(m>=d?0:m)}};return{lines:r?l.lines:e,searchText:s,searchInput:t,setSearchInput:n,shouldFilter:r,toggleShouldFilter:u,resultCount:d,resultIndex:o,resultIndexStep:p,resultLine:h==null?void 0:h.lineNumber,resultLineIndex:h==null?void 0:h.lineIndex}}var V=c(36964),ae=c(95074);function ue(e){const t=(0,V.useApi)(V.errorApiRef),[n,s]=(0,a.useState)(),o=n?Math.min(n.start,n.end):void 0,i=n?Math.max(n.start,n.end):void 0,[{error:r},u]=(0,ae.Z)();return(0,a.useEffect)(()=>{r&&t.post(r)},[r,t]),{shouldShowButton(l){return o===l||i===l},isSelected(l){return n?o<=l&&l<=i:!1},setSelection(l,h){s(h?d=>d?{start:d.start,end:l}:{start:l,end:l}:d=>(d==null?void 0:d.start)===l&&(d==null?void 0:d.end)===l?void 0:{start:l,end:l})},copySelection(){if(n){const l=e.slice(Math.min(n.start,n.end)-1,Math.max(n.start,n.end)).map(h=>h.chunks.map(d=>d.text).join("")).join(`
|
|
2
2
|
`);u(l),s(void 0)}}}}function de(e){const t=Y({classes:e.classes}),n=(0,a.useRef)(null),o=(0,a.useMemo)(()=>new P,[]).process(e.text),i=ce(o),r=ue(o),u=(0,U.TH)();(0,a.useEffect)(()=>{i.resultLine!==void 0&&n.current&&n.current.scrollToItem(i.resultLine-1,"center")},[i.resultLine]),(0,a.useEffect)(()=>{if(u.hash){const h=parseInt(u.hash.replace(/\D/g,""),10);r.setSelection(h,!1)}},[]);const l=(h,d)=>{r.setSelection(h,d.shiftKey)};return a.createElement(w.Z,null,({height:h,width:d})=>a.createElement("div",{style:{width:d,height:h},className:t.root},a.createElement("div",{className:t.header},a.createElement(re,{...i})),a.createElement(D.t7,{ref:n,className:t.log,height:h-z,width:d,itemData:i.lines,itemSize:20,itemCount:i.lines.length},({index:p,style:f,data:x})=>{const m=x[p],{lineNumber:y}=m;return a.createElement("div",{style:{...f},className:K()(t.line,{[t.lineSelected]:r.isSelected(y)})},r.shouldShowButton(y)&&a.createElement(v.Z,{"data-testid":"copy-button",size:"small",className:t.lineCopyButton,onClick:()=>r.copySelection()},a.createElement(W.Z,{fontSize:"inherit"})),a.createElement("a",{role:"row",target:"_self",href:`#line-${y}`,className:t.lineNumber,onClick:Z=>l(y,Z),onKeyPress:Z=>l(y,Z)},y),a.createElement(ee,{line:m,classes:t,searchText:i.searchText,highlightResultIndex:i.resultLine===y?i.resultLineIndex:void 0}))})))}}}]);})();
|
|
3
3
|
|
|
4
|
-
//# sourceMappingURL=8718.
|
|
4
|
+
//# sourceMappingURL=8718.2becf372.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://techdocs-cli-embedded-app/../core-components/src/components/LogViewer/AnsiProcessor.ts","webpack://techdocs-cli-embedded-app/../core-components/src/components/LogViewer/styles.ts","webpack://techdocs-cli-embedded-app/../core-components/src/components/LogViewer/LogLine.tsx","webpack://techdocs-cli-embedded-app/../core-components/src/components/LogViewer/LogViewerControls.tsx","webpack://techdocs-cli-embedded-app/../core-components/src/components/LogViewer/useLogViewerSearch.tsx","webpack://techdocs-cli-embedded-app/../core-components/src/components/LogViewer/useLogViewerSelection.tsx","webpack://techdocs-cli-embedded-app/../core-components/src/components/LogViewer/RealLogViewer.tsx"],"names":["ansiRegex","newlineRegex","codeModifiers","m","_","code","modifier","AnsiLine","lineNumber","chunks","c","newChunks","AnsiProcessor","text","modifiers","startingLineNumber","lines","currentModifiers","currentLineNumber","prevIndex","match","line","fullText","lastLineIndex","lastLine","lastChunk","newLines","HEADER_SIZE","useStyles","makeStyles","theme","getModifierClasses","classes","classNames","key","findSearchResults","searchText","searchResults","offset","start","end","calculateHighlightedChunks","results","lineOffset","resultIndex","result","chunk","localOffset","localStart","localEnd","LogLine","highlightResultIndex","elements","highlight","index","LogViewerControls","props","resultCount","resultIndexStep","toggleShouldFilter","handleKeyPress","event","IconButton","ChevronLeft","Typography","ChevronRight","TextField","e","FilterList","applySearchFilter","matchingLines","lineResultIndex","useLogViewerSearch","searchInput","setSearchInput","setResultIndex","shouldFilter","useToggle","filter","searchResult","decrement","next","useLogViewerSelection","errorApi","sel","setSelection","error","copyToClipboard","useCopyToClipboard","add","s","copyText","l","RealLogViewer","listRef","search","selection","location","handleSelectLine","height","width","style","data"],"mappings":"icAkBA,MAAMA,G,EAAY,KAAe,EAC3BC,EAAe,SAGfC,EAAgB,OAAO,YAC3B,OAAO,QAAQ,CACb,EAAGC,IAAM,CAAE,GAAGA,EAAG,KAAM,EAAK,GAC5B,EAAGA,IAAM,CAAE,GAAGA,EAAG,OAAQ,EAAK,GAC9B,EAAGA,IAAM,CAAE,GAAGA,EAAG,UAAW,EAAK,GACjC,GAAI,CAAC,CAAE,KAAMC,KAAMD,CAAE,IAAMA,EAC3B,GAAI,CAAC,CAAE,OAAQC,KAAMD,CAAE,IAAMA,EAC7B,GAAI,CAAC,CAAE,UAAWC,KAAMD,CAAE,IAAMA,EAChC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,OAAQ,GACtC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,KAAM,GACpC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,OAAQ,GACtC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,QAAS,GACvC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,MAAO,GACrC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,SAAU,GACxC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,MAAO,GACrC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,OAAQ,GACtC,GAAI,CAAC,CAAE,WAAYC,KAAMD,CAAE,IAAMA,EACjC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,MAAO,GACrC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,OAAQ,GACtC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,KAAM,GACpC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,OAAQ,GACtC,GAAIA,IAAM,CAAE,GAAGA,EAAG,WAAY,QAAS,GACvC,GAAIA,IAAM,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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 ansiRegexMaker from 'ansi-regex';\n\nconst ansiRegex = ansiRegexMaker();\nconst newlineRegex = /\\n\\r?/g;\n\n// A mapping of how each escape code changes the modifiers\nconst codeModifiers = Object.fromEntries(\n Object.entries({\n 1: m => ({ ...m, bold: true }),\n 3: m => ({ ...m, italic: true }),\n 4: m => ({ ...m, underline: true }),\n 22: ({ bold: _, ...m }) => m,\n 23: ({ italic: _, ...m }) => m,\n 24: ({ underline: _, ...m }) => m,\n 30: m => ({ ...m, foreground: 'black' }),\n 31: m => ({ ...m, foreground: 'red' }),\n 32: m => ({ ...m, foreground: 'green' }),\n 33: m => ({ ...m, foreground: 'yellow' }),\n 34: m => ({ ...m, foreground: 'blue' }),\n 35: m => ({ ...m, foreground: 'magenta' }),\n 36: m => ({ ...m, foreground: 'cyan' }),\n 37: m => ({ ...m, foreground: 'white' }),\n 39: ({ foreground: _, ...m }) => m,\n 90: m => ({ ...m, foreground: 'grey' }),\n 40: m => ({ ...m, background: 'black' }),\n 41: m => ({ ...m, background: 'red' }),\n 42: m => ({ ...m, background: 'green' }),\n 43: m => ({ ...m, background: 'yellow' }),\n 44: m => ({ ...m, background: 'blue' }),\n 45: m => ({ ...m, background: 'magenta' }),\n 46: m => ({ ...m, background: 'cyan' }),\n 47: m => ({ ...m, background: 'white' }),\n 49: ({ background: _, ...m }) => m,\n } ).map(\n ([code, modifier]) => [`\\x1b[${code}m`, modifier],\n ),\n);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nexport class AnsiLine {\n text;\n\n constructor(\n lineNumber = 1,\n chunks = [],\n ) {;this.lineNumber = lineNumber;this.chunks = chunks;\n this.text = chunks\n .map(c => c.text)\n .join('')\n .toLocaleLowerCase('en-US');\n }\n\n lastChunk() {\n return this.chunks[this.chunks.length - 1];\n }\n\n replaceLastChunk(newChunks) {\n if (newChunks) {\n this.chunks.splice(this.chunks.length - 1, 1, ...newChunks);\n this.text = this.chunks\n .map(c => c.text)\n .join('')\n .toLocaleLowerCase('en-US');\n }\n }\n}\n\nexport class AnsiProcessor {\n text = '';\n lines = [];\n\n /**\n * Processes a chunk of text while keeping internal state that optimizes\n * subsequent processing that appends to the text.\n */\n process(text) {\n if (this.text === text) {\n return this.lines;\n }\n\n if (text.startsWith(this.text)) {\n const lastLineIndex = this.lines.length > 0 ? this.lines.length - 1 : 0;\n const lastLine = this.lines[lastLineIndex] ?? new AnsiLine();\n const lastChunk = lastLine.lastChunk();\n\n const newLines = this.processLines(\n (lastChunk?.text ?? '') + text.slice(this.text.length),\n lastChunk?.modifiers,\n lastLine?.lineNumber,\n );\n lastLine.replaceLastChunk(newLines[0]?.chunks);\n\n this.lines[lastLineIndex] = lastLine;\n this.lines.push(...newLines.slice(1));\n } else {\n this.lines = this.processLines(text);\n }\n this.text = text;\n\n return this.lines;\n }\n\n // Split a chunk of text up into lines and process each line individually\n processLines = (\n text,\n modifiers = {},\n startingLineNumber = 1,\n ) => {\n const lines = [];\n\n let currentModifiers = modifiers;\n let currentLineNumber = startingLineNumber;\n\n let prevIndex = 0;\n newlineRegex.lastIndex = 0;\n for (;;) {\n const match = newlineRegex.exec(text);\n if (!match) {\n const chunks = this.processText(\n text.slice(prevIndex),\n currentModifiers,\n );\n lines.push(new AnsiLine(currentLineNumber, chunks));\n return lines;\n }\n\n const line = text.slice(prevIndex, match.index);\n prevIndex = match.index + match[0].length;\n\n const chunks = this.processText(line, currentModifiers);\n lines.push(new AnsiLine(currentLineNumber, chunks));\n\n // Modifiers that are active in the last chunk are carried over to the next line\n currentModifiers =\n chunks[chunks.length - 1].modifiers ?? currentModifiers;\n currentLineNumber += 1;\n }\n };\n\n // Processing of a one individual text chunk\n processText = (\n fullText,\n modifiers,\n ) => {\n const chunks = [];\n\n let currentModifiers = modifiers;\n\n let prevIndex = 0;\n ansiRegex.lastIndex = 0;\n for (;;) {\n const match = ansiRegex.exec(fullText);\n if (!match) {\n chunks.push({\n text: fullText.slice(prevIndex),\n modifiers: currentModifiers,\n });\n return chunks;\n }\n\n const text = fullText.slice(prevIndex, match.index);\n chunks.push({ text, modifiers: currentModifiers });\n\n // For every escape code that we encounter we keep track of where the\n // next chunk of text starts, and what modifiers it has\n prevIndex = match.index + match[0].length;\n currentModifiers = this.processCode(match[0], currentModifiers);\n }\n };\n\n processCode = (\n code,\n modifiers,\n ) => {\n return codeModifiers[code]?.(modifiers) ?? modifiers;\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 { alpha, makeStyles } from '@material-ui/core/styles';\nimport * as colors from '@material-ui/core/colors';\n\nexport const HEADER_SIZE = 40;\n\n/** @public Class keys for overriding LogViewer styles */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nexport const useStyles = makeStyles(\n theme => ({\n root: {\n background: theme.palette.background.paper,\n },\n header: {\n height: HEADER_SIZE,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'flex-end',\n },\n log: {\n fontFamily: '\"Monaco\", monospace',\n fontSize: theme.typography.pxToRem(12),\n },\n line: {\n position: 'relative',\n whiteSpace: 'pre',\n\n '&:hover': {\n background: theme.palette.action.hover,\n },\n },\n lineSelected: {\n background: theme.palette.action.selected,\n\n '&:hover': {\n background: theme.palette.action.selected,\n },\n },\n lineCopyButton: {\n position: 'absolute',\n paddingTop: 0,\n paddingBottom: 0,\n },\n lineNumber: {\n display: 'inline-block',\n textAlign: 'end',\n width: 60,\n marginRight: theme.spacing(1),\n cursor: 'pointer',\n },\n textHighlight: {\n background: alpha(theme.palette.info.main, 0.15),\n },\n textSelectedHighlight: {\n background: alpha(theme.palette.info.main, 0.4),\n },\n modifierBold: {\n fontWeight: theme.typography.fontWeightBold,\n },\n modifierItalic: {\n fontStyle: 'italic',\n },\n modifierUnderline: {\n textDecoration: 'underline',\n },\n modifierForegroundBlack: {\n color: colors.common.black,\n },\n modifierForegroundRed: {\n color: colors.red[500],\n },\n modifierForegroundGreen: {\n color: colors.green[500],\n },\n modifierForegroundYellow: {\n color: colors.yellow[500],\n },\n modifierForegroundBlue: {\n color: colors.blue[500],\n },\n modifierForegroundMagenta: {\n color: colors.purple[500],\n },\n modifierForegroundCyan: {\n color: colors.cyan[500],\n },\n modifierForegroundWhite: {\n color: colors.common.white,\n },\n modifierForegroundGrey: {\n color: colors.grey[500],\n },\n modifierBackgroundBlack: {\n background: colors.common.black,\n },\n modifierBackgroundRed: {\n background: colors.red[500],\n },\n modifierBackgroundGreen: {\n background: colors.green[500],\n },\n modifierBackgroundYellow: {\n background: colors.yellow[500],\n },\n modifierBackgroundBlue: {\n background: colors.blue[500],\n },\n modifierBackgroundMagenta: {\n background: colors.purple[500],\n },\n modifierBackgroundCyan: {\n background: colors.cyan[500],\n },\n modifierBackgroundWhite: {\n background: colors.common.white,\n },\n modifierBackgroundGrey: {\n background: colors.grey[500],\n },\n }),\n { name: 'BackstageLogViewer' },\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, { useMemo } from 'react';\n\nimport startCase from 'lodash/startCase';\nimport classnames from 'classnames';\n\n\nexport function getModifierClasses(\n classes,\n modifiers,\n) {\n const classNames = new Array();\n if (modifiers.bold) {\n classNames.push(classes.modifierBold);\n }\n if (modifiers.italic) {\n classNames.push(classes.modifierItalic);\n }\n if (modifiers.underline) {\n classNames.push(classes.modifierUnderline);\n }\n if (modifiers.foreground) {\n const key = `modifierForeground${startCase(\n modifiers.foreground,\n )}` ;\n classNames.push(classes[key]);\n }\n if (modifiers.background) {\n const key = `modifierBackground${startCase(\n modifiers.background,\n )}` ;\n classNames.push(classes[key]);\n }\n return classNames.length > 0 ? classNames.join(' ') : undefined;\n}\n\nexport function findSearchResults(text, searchText) {\n if (!searchText || !text.includes(searchText)) {\n return undefined;\n }\n const searchResults = new Array();\n let offset = 0;\n for (;;) {\n const start = text.indexOf(searchText, offset);\n if (start === -1) {\n break;\n }\n const end = start + searchText.length;\n searchResults.push({ start, end });\n offset = end;\n }\n return searchResults;\n}\n\n\n\n\n\nexport function calculateHighlightedChunks(\n line,\n searchText,\n) {\n const results = findSearchResults(line.text, searchText);\n if (!results) {\n return line.chunks;\n }\n\n const chunks = new Array();\n\n let lineOffset = 0;\n let resultIndex = 0;\n let result = results[resultIndex];\n for (const chunk of line.chunks) {\n const { text, modifiers } = chunk;\n if (!result || lineOffset + text.length < result.start) {\n chunks.push(chunk);\n lineOffset += text.length;\n continue;\n }\n\n let localOffset = 0;\n while (result) {\n const localStart = Math.max(result.start - lineOffset, 0);\n if (localStart > text.length) {\n break; // The next result is not in this chunk\n }\n\n const localEnd = Math.min(result.end - lineOffset, text.length);\n\n const hasTextBeforeResult = localStart > localOffset;\n if (hasTextBeforeResult) {\n chunks.push({ text: text.slice(localOffset, localStart), modifiers });\n }\n const hasResultText = localEnd > localStart;\n if (hasResultText) {\n chunks.push({\n modifiers,\n highlight: resultIndex,\n text: text.slice(localStart, localEnd),\n });\n }\n\n localOffset = localEnd;\n\n const foundCompleteResult = result.end - lineOffset === localEnd;\n if (foundCompleteResult) {\n resultIndex += 1;\n result = results[resultIndex];\n } else {\n break; // The rest of the result is in the following chunks\n }\n }\n\n const hasTextAfterResult = localOffset < text.length;\n if (hasTextAfterResult) {\n chunks.push({ text: text.slice(localOffset), modifiers });\n }\n\n lineOffset += text.length;\n }\n\n return chunks;\n}\n\n\n\n\n\n\n\n\nexport function LogLine({\n line,\n classes,\n searchText,\n highlightResultIndex,\n}) {\n const chunks = useMemo(\n () => calculateHighlightedChunks(line, searchText),\n [line, searchText],\n );\n\n const elements = useMemo(\n () =>\n chunks.map(({ text, modifiers, highlight }, index) => (\n React.createElement('span', {\n key: index,\n className: classnames(\n getModifierClasses(classes, modifiers),\n highlight !== undefined &&\n (highlight === highlightResultIndex\n ? classes.textSelectedHighlight\n : classes.textHighlight),\n ),}\n \n , text\n )\n )),\n [chunks, highlightResultIndex, classes],\n );\n\n return React.createElement(React.Fragment, null, elements);\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 from 'react';\nimport IconButton from '@material-ui/core/IconButton';\nimport TextField from '@material-ui/core/TextField';\nimport Typography from '@material-ui/core/Typography';\nimport ChevronLeftIcon from '@material-ui/icons/ChevronLeft';\nimport ChevronRightIcon from '@material-ui/icons/ChevronRight';\nimport FilterListIcon from '@material-ui/icons/FilterList';\n\n\n\n\nexport function LogViewerControls(props) {\n const { resultCount, resultIndexStep, toggleShouldFilter } = props;\n const resultIndex = props.resultIndex ?? 0;\n\n const handleKeyPress = (event) => {\n if (event.key === 'Enter') {\n if (event.metaKey || event.ctrlKey || event.altKey) {\n toggleShouldFilter();\n } else {\n resultIndexStep(event.shiftKey);\n }\n }\n };\n\n return (\n React.createElement(React.Fragment, null\n , resultCount !== undefined && (\n React.createElement(React.Fragment, null\n , React.createElement(IconButton, { size: \"small\", onClick: () => resultIndexStep(true),}\n , React.createElement(ChevronLeftIcon, null )\n )\n , React.createElement(Typography, null\n , Math.min(resultIndex + 1, resultCount), \"/\", resultCount\n )\n , React.createElement(IconButton, { size: \"small\", onClick: () => resultIndexStep(),}\n , React.createElement(ChevronRightIcon, null )\n )\n )\n )\n , React.createElement(TextField, {\n size: \"small\",\n variant: \"standard\",\n placeholder: \"Search\",\n value: props.searchInput,\n onKeyPress: handleKeyPress,\n onChange: e => props.setSearchInput(e.target.value),}\n )\n , React.createElement(IconButton, { size: \"small\", onClick: toggleShouldFilter,}\n , props.shouldFilter ? (\n React.createElement(FilterListIcon, { color: \"primary\",} )\n ) : (\n React.createElement(FilterListIcon, { color: \"disabled\",} )\n )\n )\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 */\n\nimport { useMemo, useState } from 'react';\nimport { useToggle } from '@react-hookz/web';\n\n\nexport function applySearchFilter(lines, searchText) {\n if (!searchText) {\n return { lines };\n }\n\n const matchingLines = [];\n const searchResults = [];\n for (const line of lines) {\n if (line.text.includes(searchText)) {\n matchingLines.push(line);\n\n let offset = 0;\n let lineResultIndex = 0;\n for (;;) {\n const start = line.text.indexOf(searchText, offset);\n if (start === -1) {\n break;\n }\n searchResults.push({\n lineNumber: line.lineNumber,\n lineIndex: lineResultIndex++,\n });\n offset = start + searchText.length;\n }\n }\n }\n\n return {\n lines: matchingLines,\n results: searchResults,\n };\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nexport function useLogViewerSearch(lines) {\n const [searchInput, setSearchInput] = useState('');\n const searchText = searchInput.toLocaleLowerCase('en-US');\n\n const [resultIndex, setResultIndex] = useState(0);\n\n const [shouldFilter, toggleShouldFilter] = useToggle(false);\n\n const filter = useMemo(\n () => applySearchFilter(lines, searchText),\n [lines, searchText],\n );\n\n const searchResult = filter.results\n ? filter.results[Math.min(resultIndex, filter.results.length - 1)]\n : undefined;\n const resultCount = filter.results?.length;\n\n const resultIndexStep = (decrement) => {\n if (decrement) {\n if (resultCount !== undefined) {\n const next = Math.min(resultIndex - 1, resultCount - 2);\n setResultIndex(next < 0 ? resultCount - 1 : next);\n }\n } else {\n if (resultCount !== undefined) {\n const next = resultIndex + 1;\n setResultIndex(next >= resultCount ? 0 : next);\n }\n }\n };\n\n return {\n lines: shouldFilter ? filter.lines : lines,\n searchText,\n searchInput,\n setSearchInput,\n shouldFilter,\n toggleShouldFilter,\n resultCount,\n resultIndex,\n resultIndexStep,\n resultLine: searchResult?.lineNumber,\n resultLineIndex: searchResult?.lineIndex,\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 { errorApiRef, useApi } from '@backstage/core-plugin-api';\nimport { useEffect, useState } from 'react';\nimport useCopyToClipboard from 'react-use/lib/useCopyToClipboard';\n\n\nexport function useLogViewerSelection(lines) {\n const errorApi = useApi(errorApiRef);\n const [sel, setSelection] = useState();\n const start = sel ? Math.min(sel.start, sel.end) : undefined;\n const end = sel ? Math.max(sel.start, sel.end) : undefined;\n\n const [{ error }, copyToClipboard] = useCopyToClipboard();\n\n useEffect(() => {\n if (error) {\n errorApi.post(error);\n }\n }, [error, errorApi]);\n\n return {\n shouldShowButton(line) {\n return start === line || end === line;\n },\n isSelected(line) {\n if (!sel) {\n return false;\n }\n return start <= line && line <= end;\n },\n setSelection(line, add) {\n if (add) {\n setSelection(s =>\n s ? { start: s.start, end: line } : { start: line, end: line },\n );\n } else {\n setSelection(s =>\n s?.start === line && s?.end === line\n ? undefined\n : { start: line, end: line },\n );\n }\n },\n copySelection() {\n if (sel) {\n const copyText = lines\n .slice(Math.min(sel.start, sel.end) - 1, Math.max(sel.start, sel.end))\n .map(l => l.chunks.map(c => c.text).join(''))\n .join('\\n');\n copyToClipboard(copyText);\n setSelection(undefined);\n }\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 */\n\nimport React, { useEffect, useMemo, useRef } from 'react';\nimport { useLocation } from 'react-router-dom';\nimport IconButton from '@material-ui/core/IconButton';\nimport CopyIcon from '@material-ui/icons/FileCopy';\nimport AutoSizer from 'react-virtualized-auto-sizer';\nimport { FixedSizeList } from 'react-window';\nimport { AnsiProcessor } from './AnsiProcessor';\nimport { HEADER_SIZE, useStyles } from './styles';\nimport classnames from 'classnames';\nimport { LogLine } from './LogLine';\nimport { LogViewerControls } from './LogViewerControls';\nimport { useLogViewerSearch } from './useLogViewerSearch';\nimport { useLogViewerSelection } from './useLogViewerSelection';\n\n\n\n\n\n\nexport function RealLogViewer(props) {\n const classes = useStyles({ classes: props.classes });\n const listRef = useRef(null);\n\n // The processor keeps state that optimizes appending to the text\n const processor = useMemo(() => new AnsiProcessor(), []);\n const lines = processor.process(props.text);\n\n const search = useLogViewerSearch(lines);\n const selection = useLogViewerSelection(lines);\n const location = useLocation();\n\n useEffect(() => {\n if (search.resultLine !== undefined && listRef.current) {\n listRef.current.scrollToItem(search.resultLine - 1, 'center');\n }\n }, [search.resultLine]);\n\n useEffect(() => {\n if (location.hash) {\n // #line-6 -> 6\n const line = parseInt(location.hash.replace(/\\D/g, ''), 10);\n selection.setSelection(line, false);\n }\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const handleSelectLine = (\n line,\n event,\n ) => {\n selection.setSelection(line, event.shiftKey);\n };\n\n return (\n React.createElement(AutoSizer, null\n , ({ height, width }) => (\n React.createElement('div', { style: { width, height }, className: classes.root,}\n , React.createElement('div', { className: classes.header,}\n , React.createElement(LogViewerControls, { ...search,} )\n )\n , React.createElement(FixedSizeList, {\n ref: listRef,\n className: classes.log,\n height: height - HEADER_SIZE,\n width: width,\n itemData: search.lines,\n itemSize: 20,\n itemCount: search.lines.length,}\n \n , ({ index, style, data }) => {\n const line = data[index];\n const { lineNumber } = line;\n return (\n React.createElement('div', {\n style: { ...style },\n className: classnames(classes.line, {\n [classes.lineSelected]: selection.isSelected(lineNumber),\n }),}\n \n , selection.shouldShowButton(lineNumber) && (\n React.createElement(IconButton, {\n 'data-testid': \"copy-button\",\n size: \"small\",\n className: classes.lineCopyButton,\n onClick: () => selection.copySelection(),}\n \n , React.createElement(CopyIcon, { fontSize: \"inherit\",} )\n )\n )\n , React.createElement('a', {\n role: \"row\",\n target: \"_self\",\n href: `#line-${lineNumber}`,\n className: classes.lineNumber,\n onClick: event => handleSelectLine(lineNumber, event),\n onKeyPress: event => handleSelectLine(lineNumber, event),}\n \n , lineNumber\n )\n , React.createElement(LogLine, {\n line: line,\n classes: classes,\n searchText: search.searchText,\n highlightResultIndex: \n search.resultLine === lineNumber\n ? search.resultLineIndex\n : undefined\n ,}\n )\n )\n );\n }\n )\n )\n )\n )\n );\n}\n"],"sourceRoot":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8792,2426],{38792:function(y,a,n){n.r(a),n.d(a,{HasSubcomponentsCard:function(){return o}});var i=n(48023),t=n(2784),e=n(62426);function o(r){const{variant:c="gridItem"}=r;return t.createElement(e.RelatedEntitiesCard,{variant:c,title:"Has subcomponents",entityKind:"Component",relationType:i.aS,columns:e.componentEntityColumns,asRenderableEntities:e.asComponentEntities,emptyMessage:"No subcomponent is part of this component",emptyHelpLink:"https://backstage.io/docs/features/software-catalog/descriptor-format#specsubcomponentof-optional"})}},62426:function(y,a,n){n.r(a),n.d(a,{RelatedEntitiesCard:function(){return r},asComponentEntities:function(){return E},asResourceEntities:function(){return C},asSystemEntities:function(){return g},componentEntityColumns:function(){return c},componentEntityHelpLink:function(){return d},resourceEntityColumns:function(){return p},resourceEntityHelpLink:function(){return f},systemEntityColumns:function(){return b},systemEntityHelpLink:function(){return T}});var i=n(90436),t=n(
|
|
1
|
+
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[8792,2426],{38792:function(y,a,n){n.r(a),n.d(a,{HasSubcomponentsCard:function(){return o}});var i=n(48023),t=n(2784),e=n(62426);function o(r){const{variant:c="gridItem"}=r;return t.createElement(e.RelatedEntitiesCard,{variant:c,title:"Has subcomponents",entityKind:"Component",relationType:i.aS,columns:e.componentEntityColumns,asRenderableEntities:e.asComponentEntities,emptyMessage:"No subcomponent is part of this component",emptyHelpLink:"https://backstage.io/docs/features/software-catalog/descriptor-format#specsubcomponentof-optional"})}},62426:function(y,a,n){n.r(a),n.d(a,{RelatedEntitiesCard:function(){return r},asComponentEntities:function(){return E},asResourceEntities:function(){return C},asSystemEntities:function(){return g},componentEntityColumns:function(){return c},componentEntityHelpLink:function(){return d},resourceEntityColumns:function(){return p},resourceEntityHelpLink:function(){return f},systemEntityColumns:function(){return b},systemEntityHelpLink:function(){return T}});var i=n(90436),t=n(17429),e=n(2784),o=n(82339);function r(s){const{variant:l="gridItem",title:u,columns:v,entityKind:h,relationType:R,emptyMessage:k,emptyHelpLink:L,asRenderableEntities:H}=s,{entity:S}=(0,t.useEntity)(),{entities:K,loading:M,error:m}=(0,t.useRelatedEntities)(S,{type:R,kind:h});return M?e.createElement(o.InfoCard,{variant:l,title:u},e.createElement(o.Progress,null)):m?e.createElement(o.InfoCard,{variant:l,title:u},e.createElement(o.ResponseErrorPanel,{error:m})):e.createElement(t.EntityTable,{title:u,variant:l,emptyContent:e.createElement("div",{style:{textAlign:"center"}},e.createElement(i.Z,{variant:"body1"},k),e.createElement(i.Z,{variant:"body2"},e.createElement(o.Link,{to:L},"Learn how to change this."))),columns:v,entities:H(K||[])})}const c=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"component"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createSpecTypeColumn(),t.EntityTable.columns.createSpecLifecycleColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],d="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",E=s=>s,p=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"resource"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createSpecTypeColumn(),t.EntityTable.columns.createSpecLifecycleColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],f="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",C=s=>s,b=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"system"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],T="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",g=s=>s}}]);})();
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=8792.
|
|
3
|
+
//# sourceMappingURL=8792.6f60e67c.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://techdocs-cli-embedded-app/../node_modules/@sucrase/webpack-loader/dist/plugins/catalog/src/components/HasSubcomponentsCard/HasSubcomponentsCard.tsx","webpack://techdocs-cli-embedded-app/../node_modules/@sucrase/webpack-loader/dist/plugins/catalog/src/components/RelatedEntitiesCard/RelatedEntitiesCard.tsx","webpack://techdocs-cli-embedded-app/../node_modules/@sucrase/webpack-loader/dist/plugins/catalog/src/components/RelatedEntitiesCard/presets.ts"],"names":["HasSubcomponentsCard","props","variant","RelatedEntitiesCard","title","columns","entityKind","relationType","emptyMessage","emptyHelpLink","asRenderableEntities","entity","entities","loading","error","Typography","componentEntityColumns","componentEntityHelpLink","asComponentEntities","resourceEntityColumns","resourceEntityHelpLink","asResourceEntities","systemEntityColumns","systemEntityHelpLink","asSystemEntities"],"mappings":"sPA8BO,SAASA,EAAqBC,EAAO,CAC1C,KAAM,CAAE,QAAAC,EAAU,UAAW,EAAID,EACjC,OACE,gBAAoBE,EAAA,oBAAqB,CACvC,QAASD,EACT,MAAO,oBACP,WAAY,YACZ,aAAc,KACd,QAAS,yBACT,qBAAsB,sBACtB,aAAc,4CACd,cAAe,mGAAoG,CACrH,CAEJ,C,0fCaO,SAASC,EACdF,EACA,CACA,KAAM,CACJ,QAAAC,EAAU,WACV,MAAAE,EACA,QAAAC,EACA,WAAAC,EACA,aAAAC,EACA,aAAAC,EACA,cAAAC,EACA,qBAAAC,CACF,EAAIT,EAEE,CAAE,OAAAU,CAAO,G,EAAI,aAAU,EACvB,CAAE,SAAAC,EAAU,QAAAC,EAAS,MAAAC,CAAM,G,EAAI,sBAAmBH,EAAQ,CAC9D,KAAMJ,EACN,KAAMD,CACR,CAAC,EAED,OAAIO,EAEA,gBAAoB,WAAU,CAAE,QAASX,EAAS,MAAOE,CAAM,EAC3D,gBAAoB,WAAU,IAAK,CACvC,EAIAU,EAEA,gBAAoB,WAAU,CAAE,QAASZ,EAAS,MAAOE,CAAM,EAC3D,gBAAoB,qBAAoB,CAAE,MAAOU,CAAM,CAAE,CAC7D,EAKF,gBAAoB,cAAa,CAC/B,MAAOV,EACP,QAASF,EACT,aACE,gBAAoB,MAAO,CAAE,MAAO,CAAE,UAAW,QAAS,CAAE,EACxD,gBAAoBa,EAAA,EAAY,CAAE,QAAS,OAAQ,EAAGP,CAAY,EAClE,gBAAoBO,EAAA,EAAY,CAAE,QAAS,OAAQ,EACjD,gBAAoB,OAAM,CAAE,GAAIN,CAAc,EAAG,2BAA+B,CACpF,CACF,EAEF,QAASJ,EACT,SAAUK,EAAqBE,GAAY,CAAC,CAAC,CAAE,CACjD,CAEJ,CCrFO,MAAMI,EAAyB,CACpC,4CAA0C,CAAE,YAAa,WAAY,CAAC,EACtE,wCAAsC,EACtC,2CAAyC,EACzC,gDAA8C,EAC9C,sDAAoD,CACtD,EACaC,EACX,uFACWC,EAAuBN,GAClCA,EAEWO,EAAwB,CACnC,4CAA0C,CAAE,YAAa,UAAW,CAAC,EACrE,wCAAsC,EACtC,2CAAyC,EACzC,gDAA8C,EAC9C,sDAAoD,CACtD,EACaC,EACX,sFACWC,EAAsBT,GACjCA,EAEWU,EAAsB,CACjC,4CAA0C,CAAE,YAAa,QAAS,CAAC,EACnE,wCAAsC,EACtC,sDAAoD,CACtD,EACaC,EACX,oFACWC,EAAoBZ,GAC/BA,C","file":"static/8792.6f60e67c.chunk.js","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_HAS_PART } from '@backstage/catalog-model';\n\nimport React from 'react';\nimport {\n asComponentEntities,\n componentEntityColumns,\n RelatedEntitiesCard,\n} from '../RelatedEntitiesCard';\n\n/** @public */\n\n\n\n\nexport function HasSubcomponentsCard(props) {\n const { variant = 'gridItem' } = props;\n return (\n React.createElement(RelatedEntitiesCard, {\n variant: variant,\n title: \"Has subcomponents\" ,\n entityKind: \"Component\",\n relationType: RELATION_HAS_PART,\n columns: componentEntityColumns,\n asRenderableEntities: asComponentEntities,\n emptyMessage: \"No subcomponent is part of this component\" ,\n emptyHelpLink: \"https://backstage.io/docs/features/software-catalog/descriptor-format#specsubcomponentof-optional\",}\n )\n );\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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\n Link,\n Progress,\n ResponseErrorPanel,\n\n} from '@backstage/core-components';\n\n/** @public */\n\n\n\n\n\n\n\n\n\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(\n props,\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 React.createElement(InfoCard, { variant: variant, title: title,}\n , React.createElement(Progress, null )\n )\n );\n }\n\n if (error) {\n return (\n React.createElement(InfoCard, { variant: variant, title: title,}\n , React.createElement(ResponseErrorPanel, { error: error,} )\n )\n );\n }\n\n return (\n React.createElement(EntityTable, {\n title: title,\n variant: variant,\n emptyContent: \n React.createElement('div', { style: { textAlign: 'center' },}\n , React.createElement(Typography, { variant: \"body1\",}, emptyMessage)\n , React.createElement(Typography, { variant: \"body2\",}\n , React.createElement(Link, { to: emptyHelpLink,}, \"Learn how to change this.\" )\n )\n )\n ,\n columns: columns,\n entities: asRenderableEntities(entities || []),}\n )\n );\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { EntityTable } from '@backstage/plugin-catalog-react';\n\n\nexport const componentEntityColumns = [\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 =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component';\nexport const asComponentEntities = (entities) =>\n entities ;\n\nexport const resourceEntityColumns = [\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 =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource';\nexport const asResourceEntities = (entities) =>\n entities ;\n\nexport const systemEntityColumns = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'system' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const systemEntityHelpLink =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system';\nexport const asSystemEntities = (entities) =>\n entities ;\n"],"sourceRoot":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[9028,2426],{59028:function(d,i,n){n.r(i),n.d(i,{DependsOnResourcesCard:function(){return o}});var r=n(48023),t=n(2784),e=n(62426);function o(a){const{variant:c="gridItem"}=a;return t.createElement(e.RelatedEntitiesCard,{variant:c,title:"Depends on resources",entityKind:"Resource",relationType:r.nP,columns:e.resourceEntityColumns,emptyMessage:"No resource is a dependency of this component",emptyHelpLink:e.componentEntityHelpLink,asRenderableEntities:e.asResourceEntities})}},62426:function(d,i,n){n.r(i),n.d(i,{RelatedEntitiesCard:function(){return a},asComponentEntities:function(){return E},asResourceEntities:function(){return C},asSystemEntities:function(){return b},componentEntityColumns:function(){return c},componentEntityHelpLink:function(){return y},resourceEntityColumns:function(){return p},resourceEntityHelpLink:function(){return f},systemEntityColumns:function(){return T},systemEntityHelpLink:function(){return R}});var r=n(90436),t=n(
|
|
1
|
+
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[9028,2426],{59028:function(d,i,n){n.r(i),n.d(i,{DependsOnResourcesCard:function(){return o}});var r=n(48023),t=n(2784),e=n(62426);function o(a){const{variant:c="gridItem"}=a;return t.createElement(e.RelatedEntitiesCard,{variant:c,title:"Depends on resources",entityKind:"Resource",relationType:r.nP,columns:e.resourceEntityColumns,emptyMessage:"No resource is a dependency of this component",emptyHelpLink:e.componentEntityHelpLink,asRenderableEntities:e.asResourceEntities})}},62426:function(d,i,n){n.r(i),n.d(i,{RelatedEntitiesCard:function(){return a},asComponentEntities:function(){return E},asResourceEntities:function(){return C},asSystemEntities:function(){return b},componentEntityColumns:function(){return c},componentEntityHelpLink:function(){return y},resourceEntityColumns:function(){return p},resourceEntityHelpLink:function(){return f},systemEntityColumns:function(){return T},systemEntityHelpLink:function(){return R}});var r=n(90436),t=n(17429),e=n(2784),o=n(82339);function a(s){const{variant:l="gridItem",title:u,columns:v,entityKind:g,relationType:h,emptyMessage:L,emptyHelpLink:k,asRenderableEntities:H}=s,{entity:D}=(0,t.useEntity)(),{entities:S,loading:K,error:m}=(0,t.useRelatedEntities)(D,{type:h,kind:g});return K?e.createElement(o.InfoCard,{variant:l,title:u},e.createElement(o.Progress,null)):m?e.createElement(o.InfoCard,{variant:l,title:u},e.createElement(o.ResponseErrorPanel,{error:m})):e.createElement(t.EntityTable,{title:u,variant:l,emptyContent:e.createElement("div",{style:{textAlign:"center"}},e.createElement(r.Z,{variant:"body1"},L),e.createElement(r.Z,{variant:"body2"},e.createElement(o.Link,{to:k},"Learn how to change this."))),columns:v,entities:H(S||[])})}const c=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"component"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createSpecTypeColumn(),t.EntityTable.columns.createSpecLifecycleColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],y="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component",E=s=>s,p=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"resource"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createSpecTypeColumn(),t.EntityTable.columns.createSpecLifecycleColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],f="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource",C=s=>s,T=[t.EntityTable.columns.createEntityRefColumn({defaultKind:"system"}),t.EntityTable.columns.createOwnerColumn(),t.EntityTable.columns.createMetadataDescriptionColumn()],R="https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system",b=s=>s}}]);})();
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=9028.
|
|
3
|
+
//# sourceMappingURL=9028.1e31ab6a.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://techdocs-cli-embedded-app/../node_modules/@sucrase/webpack-loader/dist/plugins/catalog/src/components/DependsOnResourcesCard/DependsOnResourcesCard.tsx","webpack://techdocs-cli-embedded-app/../node_modules/@sucrase/webpack-loader/dist/plugins/catalog/src/components/RelatedEntitiesCard/RelatedEntitiesCard.tsx","webpack://techdocs-cli-embedded-app/../node_modules/@sucrase/webpack-loader/dist/plugins/catalog/src/components/RelatedEntitiesCard/presets.ts"],"names":["DependsOnResourcesCard","props","variant","RelatedEntitiesCard","title","columns","entityKind","relationType","emptyMessage","emptyHelpLink","asRenderableEntities","entity","entities","loading","error","Typography","componentEntityColumns","componentEntityHelpLink","asComponentEntities","resourceEntityColumns","resourceEntityHelpLink","asResourceEntities","systemEntityColumns","systemEntityHelpLink","asSystemEntities"],"mappings":"wPA+BO,SAASA,EAAuBC,EAAO,CAC5C,KAAM,CAAE,QAAAC,EAAU,UAAW,EAAID,EACjC,OACE,gBAAoBE,EAAA,oBAAqB,CACvC,QAASD,EACT,MAAO,uBACP,WAAY,WACZ,aAAc,KACd,QAAS,wBACT,aAAc,gDACd,cAAe,0BACf,qBAAsB,oBAAmB,CAC3C,CAEJ,C,0fCYO,SAASC,EACdF,EACA,CACA,KAAM,CACJ,QAAAC,EAAU,WACV,MAAAE,EACA,QAAAC,EACA,WAAAC,EACA,aAAAC,EACA,aAAAC,EACA,cAAAC,EACA,qBAAAC,CACF,EAAIT,EAEE,CAAE,OAAAU,CAAO,G,EAAI,aAAU,EACvB,CAAE,SAAAC,EAAU,QAAAC,EAAS,MAAAC,CAAM,G,EAAI,sBAAmBH,EAAQ,CAC9D,KAAMJ,EACN,KAAMD,CACR,CAAC,EAED,OAAIO,EAEA,gBAAoB,WAAU,CAAE,QAASX,EAAS,MAAOE,CAAM,EAC3D,gBAAoB,WAAU,IAAK,CACvC,EAIAU,EAEA,gBAAoB,WAAU,CAAE,QAASZ,EAAS,MAAOE,CAAM,EAC3D,gBAAoB,qBAAoB,CAAE,MAAOU,CAAM,CAAE,CAC7D,EAKF,gBAAoB,cAAa,CAC/B,MAAOV,EACP,QAASF,EACT,aACE,gBAAoB,MAAO,CAAE,MAAO,CAAE,UAAW,QAAS,CAAE,EACxD,gBAAoBa,EAAA,EAAY,CAAE,QAAS,OAAQ,EAAGP,CAAY,EAClE,gBAAoBO,EAAA,EAAY,CAAE,QAAS,OAAQ,EACjD,gBAAoB,OAAM,CAAE,GAAIN,CAAc,EAAG,2BAA+B,CACpF,CACF,EAEF,QAASJ,EACT,SAAUK,EAAqBE,GAAY,CAAC,CAAC,CAAE,CACjD,CAEJ,CCrFO,MAAMI,EAAyB,CACpC,4CAA0C,CAAE,YAAa,WAAY,CAAC,EACtE,wCAAsC,EACtC,2CAAyC,EACzC,gDAA8C,EAC9C,sDAAoD,CACtD,EACaC,EACX,uFACWC,EAAuBN,GAClCA,EAEWO,EAAwB,CACnC,4CAA0C,CAAE,YAAa,UAAW,CAAC,EACrE,wCAAsC,EACtC,2CAAyC,EACzC,gDAA8C,EAC9C,sDAAoD,CACtD,EACaC,EACX,sFACWC,EAAsBT,GACjCA,EAEWU,EAAsB,CACjC,4CAA0C,CAAE,YAAa,QAAS,CAAC,EACnE,wCAAsC,EACtC,sDAAoD,CACtD,EACaC,EACX,oFACWC,EAAoBZ,GAC/BA,C","file":"static/9028.1e31ab6a.chunk.js","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 } from '@backstage/catalog-model';\n\nimport React from 'react';\nimport {\n asResourceEntities,\n componentEntityHelpLink,\n RelatedEntitiesCard,\n resourceEntityColumns,\n} from '../RelatedEntitiesCard';\n\n/** @public */\n\n\n\n\nexport function DependsOnResourcesCard(props) {\n const { variant = 'gridItem' } = props;\n return (\n React.createElement(RelatedEntitiesCard, {\n variant: variant,\n title: \"Depends on resources\" ,\n entityKind: \"Resource\",\n relationType: RELATION_DEPENDS_ON,\n columns: resourceEntityColumns,\n emptyMessage: \"No resource is a dependency of this component\" ,\n emptyHelpLink: componentEntityHelpLink,\n asRenderableEntities: asResourceEntities,}\n )\n );\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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\n Link,\n Progress,\n ResponseErrorPanel,\n\n} from '@backstage/core-components';\n\n/** @public */\n\n\n\n\n\n\n\n\n\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(\n props,\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 React.createElement(InfoCard, { variant: variant, title: title,}\n , React.createElement(Progress, null )\n )\n );\n }\n\n if (error) {\n return (\n React.createElement(InfoCard, { variant: variant, title: title,}\n , React.createElement(ResponseErrorPanel, { error: error,} )\n )\n );\n }\n\n return (\n React.createElement(EntityTable, {\n title: title,\n variant: variant,\n emptyContent: \n React.createElement('div', { style: { textAlign: 'center' },}\n , React.createElement(Typography, { variant: \"body1\",}, emptyMessage)\n , React.createElement(Typography, { variant: \"body2\",}\n , React.createElement(Link, { to: emptyHelpLink,}, \"Learn how to change this.\" )\n )\n )\n ,\n columns: columns,\n entities: asRenderableEntities(entities || []),}\n )\n );\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { EntityTable } from '@backstage/plugin-catalog-react';\n\n\nexport const componentEntityColumns = [\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 =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component';\nexport const asComponentEntities = (entities) =>\n entities ;\n\nexport const resourceEntityColumns = [\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 =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-resource';\nexport const asResourceEntities = (entities) =>\n entities ;\n\nexport const systemEntityColumns = [\n EntityTable.columns.createEntityRefColumn({ defaultKind: 'system' }),\n EntityTable.columns.createOwnerColumn(),\n EntityTable.columns.createMetadataDescriptionColumn(),\n];\nexport const systemEntityHelpLink =\n 'https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system';\nexport const asSystemEntities = (entities) =>\n entities ;\n"],"sourceRoot":""}
|