@techdocs/cli 1.5.0-next.1 → 1.5.0-next.2
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 +11 -0
- package/dist/embedded-app/index.html +1 -1
- package/dist/embedded-app/static/1093.317a4f39.chunk.js +7 -0
- package/dist/embedded-app/static/1093.317a4f39.chunk.js.map +1 -0
- package/dist/embedded-app/static/5837.d9697f2a.chunk.js +3 -0
- package/dist/embedded-app/static/{9323.dd670d43.chunk.js.map → 5837.d9697f2a.chunk.js.map} +1 -1
- package/dist/embedded-app/static/6051.9a397327.chunk.js +4 -0
- package/dist/embedded-app/static/{6051.e6ab645f.chunk.js.map → 6051.9a397327.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{7560.12e04146.chunk.js → 7560.f82352d7.chunk.js} +2 -2
- package/dist/embedded-app/static/{7560.12e04146.chunk.js.map → 7560.f82352d7.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{7750.10e99997.chunk.js → 7750.da1a67d5.chunk.js} +2 -2
- package/dist/embedded-app/static/{7750.10e99997.chunk.js.map → 7750.da1a67d5.chunk.js.map} +1 -1
- package/dist/embedded-app/static/{8951.bff6b400.chunk.js → 8951.d0edcfcb.chunk.js} +2 -2
- package/dist/embedded-app/static/{8951.bff6b400.chunk.js.map → 8951.d0edcfcb.chunk.js.map} +1 -1
- package/dist/embedded-app/static/main.2d4c0606.js +522 -0
- package/dist/embedded-app/static/main.2d4c0606.js.map +1 -0
- package/dist/embedded-app/static/module-i18next.3eb80014.js +3 -0
- package/dist/embedded-app/static/module-i18next.3eb80014.js.map +1 -0
- package/dist/embedded-app/static/module-luxon.b1d74b2d.js +3 -0
- package/dist/embedded-app/static/module-luxon.b1d74b2d.js.map +1 -0
- package/dist/embedded-app/static/{module-yaml.aace0584.js → module-yaml.00a97896.js} +6 -5
- package/dist/embedded-app/static/module-yaml.00a97896.js.map +1 -0
- package/dist/embedded-app/static/{runtime.4dd3806f.js → runtime.2d4c0606.js} +2 -2
- package/dist/embedded-app/static/{runtime.4dd3806f.js.map → runtime.2d4c0606.js.map} +1 -1
- package/dist/embedded-app/static/vendor.2d4c0606.js +213 -0
- package/dist/embedded-app/static/vendor.2d4c0606.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/package.json +6 -6
- package/dist/embedded-app/static/1049.e59b8f46.chunk.js +0 -7
- package/dist/embedded-app/static/1049.e59b8f46.chunk.js.map +0 -1
- package/dist/embedded-app/static/6051.e6ab645f.chunk.js +0 -4
- package/dist/embedded-app/static/9323.dd670d43.chunk.js +0 -3
- package/dist/embedded-app/static/main.4dd3806f.js +0 -522
- package/dist/embedded-app/static/main.4dd3806f.js.map +0 -1
- package/dist/embedded-app/static/module-luxon.a1854eb9.js +0 -3
- package/dist/embedded-app/static/module-luxon.a1854eb9.js.map +0 -1
- package/dist/embedded-app/static/module-yaml.aace0584.js.map +0 -1
- package/dist/embedded-app/static/vendor.4dd3806f.js +0 -213
- package/dist/embedded-app/static/vendor.4dd3806f.js.map +0 -1
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[6051],{76051:function(xe,L,c){c.r(L),c.d(L,{RealLogViewer:function(){return me}});var u=c(52322),j=c(95544),S=c(61837),U=c(19353),W=c(72779),b=c.n(W),x=c(2784),D=c(73557),G=c(63399),P=c(50166),y=c(87612),$=c(46212);const R=(0,$.Z)(),B=/\n\r?/g,Y=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 C{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"))}constructor(t=1,n=[]){(0,y._)(this,"lineNumber",void 0),(0,y._)(this,"chunks",void 0),(0,y._)(this,"text",void 0),this.lineNumber=t,this.chunks=n,this.text=n.map(o=>o.text).join("").toLocaleLowerCase("en-US")}}class J{process(t){if(this.text===t)return this.lines;if(t.startsWith(this.text)){var n,o,s,r;const l=this.lines.length>0?this.lines.length-1:0;var i;const a=(i=this.lines[l])!==null&&i!==void 0?i:new C,h=a.lastChunk();var d;const f=this.processLines(((d=(n=h)===null||n===void 0?void 0:n.text)!==null&&d!==void 0?d:"")+t.slice(this.text.length),(o=h)===null||o===void 0?void 0:o.modifiers,(s=a)===null||s===void 0?void 0:s.lineNumber);a.replaceLastChunk((r=f[0])===null||r===void 0?void 0:r.chunks),this.lines[l]=a,this.lines.push(...f.slice(1))}else this.lines=this.processLines(t);return this.text=t,this.lines}constructor(){(0,y._)(this,"text",""),(0,y._)(this,"lines",[]),(0,y._)(this,"processLines",(t,n={},o=1)=>{const s=[];let r=n,i=o,d=0;for(B.lastIndex=0;;){const a=B.exec(t);if(!a){const g=this.processText(t.slice(d),r);return s.push(new C(i,g)),s}const h=t.slice(d,a.index);d=a.index+a[0].length;const f=this.processText(h,r);s.push(new C(i,f));var l;r=(l=f[f.length-1].modifiers)!==null&&l!==void 0?l:r,i+=1}}),(0,y._)(this,"processText",(t,n)=>{const o=[];let s=n,r=0;for(R.lastIndex=0;;){const i=R.exec(t);if(!i)return o.push({text:t.slice(r),modifiers:s}),o;const d=t.slice(r,i.index);o.push({text:d,modifiers:s}),r=i.index+i[0].length,s=this.processCode(i[0],s)}}),(0,y._)(this,"processCode",(t,n)=>{var o,s,r;return(r=(o=(s=Y)[t])===null||o===void 0?void 0:o.call(s,n))!==null&&r!==void 0?r:n})}}var Q=c(74600),I=c.n(Q),X=c(63494),w=c(43909);function q(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 o=`modifierForeground${I()(t.foreground)}`;n.push(e[o])}if(t.background){const o=`modifierBackground${I()(t.background)}`;n.push(e[o])}return n.length>0?n.join(" "):void 0}function _(e,t){if(!t||!e.includes(t))return;const n=new Array;let o=0;for(;;){const s=e.indexOf(t,o);if(s===-1)break;const r=s+t.length;n.push({start:s,end:r}),o=r}return n}function ee(e,t){const n=_(e.text,t);if(!n)return e.chunks;const o=new Array;let s=0,r=0,i=n[r];for(const d of e.chunks){const{text:l,modifiers:a}=d;if(!i||s+l.length<i.start){o.push(d),s+=l.length;continue}let h=0;for(;i;){const g=Math.max(i.start-s,0);if(g>l.length)break;const m=Math.min(i.end-s,l.length);if(g>h&&o.push({text:l.slice(h,g),modifiers:a}),m>g&&o.push({modifiers:a,highlight:r,text:l.slice(g,m)}),h=m,i.end-s===m)r+=1,i=n[r];else break}h<l.length&&o.push({text:l.slice(h),modifiers:a}),s+=l.length}return o}const te=({attributes:e,content:t})=>{const{href:n,...o}=e;return(0,u.jsx)(w.r,{to:n,...o,children:t})};function ne({line:e,classes:t,searchText:n,highlightResultIndex:o}){const s=(0,x.useMemo)(()=>ee(e,n),[e,n]),r=(0,x.useMemo)(()=>s.map(({text:i,modifiers:d,highlight:l},a)=>(0,u.jsx)("span",{className:b()(q(t,d),l!==void 0&&(l===o?t.textSelectedHighlight:t.textHighlight)),children:(0,u.jsx)(X.Z,{options:{render:te},children:i})},a)),[s,o,t]);return(0,u.jsx)(u.Fragment,{children:r})}var oe=c(86619),se=c(90436),re=c(48049),ie=c(51209),F=c(36444);function le(e){const{resultCount:t,resultIndexStep:n,toggleShouldFilter:o}=e;var s;const r=(s=e.resultIndex)!==null&&s!==void 0?s:0,i=d=>{d.key==="Enter"&&(d.metaKey||d.ctrlKey||d.altKey?o():n(d.shiftKey))};return(0,u.jsxs)(u.Fragment,{children:[t!==void 0&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(S.Z,{size:"small",onClick:()=>n(!0),children:(0,u.jsx)(re.Z,{})}),(0,u.jsxs)(se.Z,{children:[Math.min(r+1,t),"/",t]}),(0,u.jsx)(S.Z,{size:"small",onClick:()=>n(),children:(0,u.jsx)(ie.Z,{})})]}),(0,u.jsx)(oe.Z,{size:"small",variant:"standard",placeholder:"Search",value:e.searchInput,onKeyPress:i,onChange:d=>e.setSearchInput(d.target.value)}),(0,u.jsx)(S.Z,{size:"small",onClick:o,children:e.shouldFilter?(0,u.jsx)(F.Z,{color:"primary"}):(0,u.jsx)(F.Z,{color:"disabled"})})]})}var ce=c(79692),M=c(41128),Z=c(31754),N=c(66054),T=c(81463),z=c(34505),A=c(57186),E=c(32720),K=c(92901),H=c(45410);const O=40,de=(0,ce.Z)(e=>({root:{background:e.palette.background.paper},header:{height:O,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,M.Fq)(e.palette.info.main,.15)},textSelectedHighlight:{background:(0,M.Fq)(e.palette.info.main,.4)},modifierBold:{fontWeight:e.typography.fontWeightBold},modifierItalic:{fontStyle:"italic"},modifierUnderline:{textDecoration:"underline"},modifierForegroundBlack:{color:Z.Z.black},modifierForegroundRed:{color:N.Z[500]},modifierForegroundGreen:{color:T.Z[500]},modifierForegroundYellow:{color:z.Z[500]},modifierForegroundBlue:{color:A.Z[500]},modifierForegroundMagenta:{color:E.Z[500]},modifierForegroundCyan:{color:K.Z[500]},modifierForegroundWhite:{color:Z.Z.white},modifierForegroundGrey:{color:H.Z[500]},modifierBackgroundBlack:{background:Z.Z.black},modifierBackgroundRed:{background:N.Z[500]},modifierBackgroundGreen:{background:T.Z[500]},modifierBackgroundYellow:{background:z.Z[500]},modifierBackgroundBlue:{background:A.Z[500]},modifierBackgroundMagenta:{background:E.Z[500]},modifierBackgroundCyan:{background:K.Z[500]},modifierBackgroundWhite:{background:Z.Z.white},modifierBackgroundGrey:{background:H.Z[500]}}),{name:"BackstageLogViewer"});var ae=c(96686);function ue(e,t){if(!t)return{lines:e};const n=[],o=[];for(const s of e)if(s.text.includes(t)){n.push(s);let r=0,i=0;for(;;){const d=s.text.indexOf(t,r);if(d===-1)break;o.push({lineNumber:s.lineNumber,lineIndex:i++}),r=d+t.length}}return{lines:n,results:o}}function he(e){var t,n,o;const[s,r]=(0,x.useState)(""),i=s.toLocaleLowerCase("en-US"),[d,l]=(0,x.useState)(0),[a,h]=(0,ae.O)(!1),f=(0,x.useMemo)(()=>ue(e,i),[e,i]),g=f.results?f.results[Math.min(d,f.results.length-1)]:void 0,m=(t=f.results)===null||t===void 0?void 0:t.length,k=v=>{if(v){if(m!==void 0){const p=Math.min(d-1,m-2);l(p<0?m-1:p)}}else if(m!==void 0){const p=d+1;l(p>=m?0:p)}};return{lines:a?f.lines:e,searchText:i,searchInput:s,setSearchInput:r,shouldFilter:a,toggleShouldFilter:h,resultCount:m,resultIndex:d,resultIndexStep:k,resultLine:(n=g)===null||n===void 0?void 0:n.lineNumber,resultLineIndex:(o=g)===null||o===void 0?void 0:o.lineIndex}}var V=c(60871),fe=c(95074);function ge(e){const t=(0,V.h_)(V.VE),[n,o]=(0,x.useState)(),s=n?Math.min(n.start,n.end):void 0,r=n?Math.max(n.start,n.end):void 0,[{error:i},d]=(0,fe.Z)();return(0,x.useEffect)(()=>{i&&t.post(i)},[i,t]),{shouldShowButton(l){return s===l||r===l},isSelected(l){return n?s<=l&&l<=r:!1},setSelection(l,a){o(a?h=>h?{start:h.start,end:l}:{start:l,end:l}:h=>{var f,g;return((f=h)===null||f===void 0?void 0:f.start)===l&&((g=h)===null||g===void 0?void 0:g.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(a=>a.chunks.map(h=>h.text).join("")).join(`
|
|
2
|
-
`);d(l),o(void 0)}}}}function me(e){const t=de({classes:e.classes}),n=(0,x.useRef)(null),s=(0,x.useMemo)(()=>new J,[]).process(e.text),r=he(s),i=ge(s),d=(0,D.TH)();(0,x.useEffect)(()=>{r.resultLine!==void 0&&n.current&&n.current.scrollToItem(r.resultLine-1,"center")},[r.resultLine]),(0,x.useEffect)(()=>{if(d.hash){const a=parseInt(d.hash.replace(/\D/g,""),10);i.setSelection(a,!1)}},[]);const l=(a,h)=>{i.setSelection(a,h.shiftKey)};return(0,u.jsx)(G.Z,{children:({height:a,width:h})=>(0,u.jsxs)(j.Z,{style:{width:h,height:a},className:t.root,children:[(0,u.jsx)(j.Z,{className:t.header,children:(0,u.jsx)(le,{...r})}),(0,u.jsx)(P.t7,{ref:n,className:t.log,height:(a||480)-O,width:h||640,itemData:r.lines,itemSize:20,itemCount:r.lines.length,children:({index:f,style:g,data:m})=>{const k=m[f],{lineNumber:v}=k;return(0,u.jsxs)(j.Z,{style:{...g},className:b()(t.line,{[t.lineSelected]:i.isSelected(v)}),children:[i.shouldShowButton(v)&&(0,u.jsx)(S.Z,{"data-testid":"copy-button",size:"small",className:t.lineCopyButton,onClick:()=>i.copySelection(),children:(0,u.jsx)(U.Z,{fontSize:"inherit"})}),(0,u.jsx)("a",{role:"row",target:"_self",href:`#line-${v}`,className:t.lineNumber,onClick:p=>l(v,p),onKeyPress:p=>l(v,p),children:v}),(0,u.jsx)(ne,{line:k,classes:t,searchText:r.searchText,highlightResultIndex:r.resultLine===v?r.resultLineIndex:void 0})]})}})]})})}}}]);})();
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=6051.e6ab645f.chunk.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[9323],{89323:function(D,a,s){s.r(a),s.d(a,{CatalogPage:function(){return m},DefaultCatalogPage:function(){return c}});var t=s(52322),E=s(2784),g=s(73557),o=s(53974),l=s(60871),n=s(39709),u=s(19625),j=s(86359),x=s(64355);const h=()=>(0,x.y)();function c(i){const{columns:d,actions:C,initiallySelectedFilter:p="owned",initialKind:f="component",tableOptions:v={},emptyContent:y,ownerPickerMode:O}=i;var e;const P=(e=(0,l.h_)(l.Ds).getOptionalString("organization.name"))!==null&&e!==void 0?e:"Backstage",r=(0,l.tg)(u.yw),{createButtonTitle:F}=h();return(0,t.jsx)(o.g9,{title:`${P} Catalog`,themeId:"home",children:(0,t.jsxs)(o.VY,{children:[(0,t.jsxs)(o.yW,{title:"",children:[(0,t.jsx)(o.XF,{title:F,to:r&&r()}),(0,t.jsx)(o.qt,{children:"All your software catalog entities"})]}),(0,t.jsx)(n.UO,{children:(0,t.jsxs)(n._i,{children:[(0,t.jsxs)(n._i.Filters,{children:[(0,t.jsx)(n.tW,{initialFilter:f}),(0,t.jsx)(n.sL,{}),(0,t.jsx)(n.EW,{initialFilter:p}),(0,t.jsx)(n.dq,{mode:O}),(0,t.jsx)(n.df,{}),(0,t.jsx)(n.xE,{}),(0,t.jsx)(n.nl,{}),(0,t.jsx)(n.ph,{})]}),(0,t.jsx)(n._i.Content,{children:(0,t.jsx)(j.E,{columns:d,actions:C,tableOptions:v,emptyContent:y})})]})})]})})}function m(i){return(0,g.pC)()||(0,t.jsx)(c,{...i})}}}]);})();
|
|
2
|
-
|
|
3
|
-
//# sourceMappingURL=9323.dd670d43.chunk.js.map
|