@fugood/bricks-cli 2.26.0-beta.37 → 2.26.0-beta.38
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/lib/1708.js +7 -7
- package/lib/2486.js +1 -1
- package/lib/4994.js +1 -0
- package/lib/6818.js +1 -1
- package/lib/7294.js +2 -2
- package/lib/831.js +1 -1
- package/lib/9439.js +1 -1
- package/lib/index.js +15 -15
- package/lib/lib.js +142 -142
- package/package.json +6 -6
- package/lib/3690.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-cli",
|
|
3
|
-
"version": "2.26.0-beta.
|
|
3
|
+
"version": "2.26.0-beta.38",
|
|
4
4
|
"description": "BRICKS CLI - Command-line interface for BRICKS Workspace API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bricks",
|
|
@@ -56,11 +56,11 @@
|
|
|
56
56
|
"@babel/parser": "7.28.5",
|
|
57
57
|
"@babel/traverse": "7.28.5",
|
|
58
58
|
"@babel/types": "7.28.5",
|
|
59
|
-
"@fugood/bricks-config-core": "^2.26.0-beta.
|
|
60
|
-
"@fugood/bricks-core-generated": "^2.26.0-beta.
|
|
61
|
-
"@fugood/bricks-devtools-core": "^2.26.0-beta.
|
|
59
|
+
"@fugood/bricks-config-core": "^2.26.0-beta.38",
|
|
60
|
+
"@fugood/bricks-core-generated": "^2.26.0-beta.38",
|
|
61
|
+
"@fugood/bricks-devtools-core": "^2.26.0-beta.38",
|
|
62
62
|
"@fugood/bricks-system-properties-definition": "^2.25.3",
|
|
63
|
-
"@fugood/property-bank-calc-generated": "^2.26.0-beta.
|
|
63
|
+
"@fugood/property-bank-calc-generated": "^2.26.0-beta.38",
|
|
64
64
|
"@huggingface/gguf": "^0.3.2",
|
|
65
65
|
"@iarna/toml": "^3.0.0",
|
|
66
66
|
"@inquirer/prompts": "^7.0.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": ">=18.0.0"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "5da567741cda9e2fad45370df327216b09f393f7"
|
|
93
93
|
}
|
package/lib/3690.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id=3690;export const __rspack_esm_ids=[3690];export const __webpack_modules__={44187(e){e.exports=function(e,t,l,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(l=e[++o]);++o<i;)l=t(l,e[o],o,e);return l}},39546(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},51035(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},93640(e,t,l){var n=l(44187),o=l(45881),i=l(39850),r=RegExp("['’]","g");e.exports=function(e){return function(t){return n(i(o(t).replace(r,"")),e,"")}}},69968(e,t,l){e.exports=l(51035)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"})},15813(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},10482(e){var t="\\ud800-\\udfff",l="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="['’]",u="["+i+"]",f="["+n+"]",a="[^"+t+i+"\\d+"+l+n+o+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="["+o+"]",h="(?:"+f+"|"+a+")",p="(?:"+c+"|"+a+")",D="(?:"+r+"(?:d|ll|m|re|s|t|ve))?",g="(?:"+r+"(?:D|LL|M|RE|S|T|VE))?",w="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",B="[\\ufe0e\\ufe0f]?",b="(?:\\u200d(?:"+["[^"+t+"]",d,s].join("|")+")"+B+w+")*",x="(?:"+["["+l+"]",d,s].join("|")+")"+(B+w+b),R=RegExp([c+"?"+f+"+"+D+"(?="+[u,c,"$"].join("|")+")",p+"+"+g+"(?="+[u,c+h,"$"].join("|")+")",c+"?"+h+"+"+D,c+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",x].join("|"),"g");e.exports=function(e){return e.match(R)||[]}},45881(e,t,l){var n=l(69968),o=l(95243),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,r=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,n).replace(r,"")}},10750(e,t,l){e.exports=l(93640)(function(e,t,l){return e+(l?"-":"")+t.toLowerCase()})},39850(e,t,l){var n=l(39546),o=l(15813),i=l(95243),r=l(10482);e.exports=function(e,t,l){return(e=i(e),void 0===(t=l?void 0:t))?o(e)?r(e):n(e):e.match(t)||[]}},16699(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},62192(e,t,l){var n=l(16699);e.exports=function(e){var t={},l=!1;function o(t,o){return l=!0,{done:!1,value:new n(o=new Promise(function(l){l(e[t](o))}),1)}}return t["u">typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return l?(l=!1,e):o("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(l)throw l=!1,e;return o("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return l?(l=!1,e):o("return",e)}),t},e.exports.__esModule=!0,e.exports.default=e.exports},32235(e,t,l){var n=l(16699);e.exports=function(e){return new n(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},4275(e,t,l){var n=l(16699);function o(e){var t,l;function o(t,l){try{var r=e[t](l),u=r.value,f=u instanceof n;Promise.resolve(f?u.v:u).then(function(l){if(f){var n="return"===t?"return":"next";if(!u.k||l.done)return o(n,l);l=e[n](l).value}i(r.done?"return":"normal",l)},function(e){o("throw",e)})}catch(e){i("throw",e)}}function i(e,n){switch(e){case"return":t.resolve({value:n,done:!0});break;case"throw":t.reject(n);break;default:t.resolve({value:n,done:!1})}(t=t.next)?o(t.key,t.arg):l=null}this._invoke=function(e,n){return new Promise(function(i,r){var u={key:e,arg:n,resolve:i,reject:r,next:null};l?l=l.next=u:(t=l=u,o(e,n))})},"function"!=typeof e.return&&(this.return=void 0)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},e.exports=function(e){return function(){return new o(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},48724(e,t,l){l.d(t,{Ay:()=>D});var n=l(51649),o=l(8498),i=l(29122);let r={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"\xbd",oneThird:"⅓",oneQuarter:"\xbc",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"\xbe",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"},u={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"},f={...r,...u},a={...r,tick:"√",info:"i",warning:"‼",cross:"\xd7",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(\xd7)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},d=(0,i.A)()?f:a;Object.entries(u);let s=function({isSelected:e=!1}){return n.default.createElement(o.Box,{marginRight:1},e?n.default.createElement(o.Text,{color:"blue"},d.pointer):n.default.createElement(o.Text,null," "))},c=function({isSelected:e=!1,label:t}){return n.createElement(o.Text,{color:e?"blue":void 0},t)};var h=l(57975);function p(e,t){if(!Array.isArray(e))throw TypeError(`Expected an array, got \`${typeof e}\`.`);if(!Number.isSafeInteger(t))throw TypeError(`The \`steps\` parameter must be an integer, got ${t}.`);let{length:l}=e;if(0===l)return[...e];let n=(t%l+l)%l;return 0===n?[...e]:[...e.slice(-n),...e.slice(0,-n)]}let D=function({items:e=[],isFocused:t=!0,initialIndex:l=0,indicatorComponent:i=s,itemComponent:r=c,limit:u,onSelect:f,onHighlight:a}){let d="number"==typeof u&&e.length>u,D=d?Math.min(u,e.length):e.length,g=D-1,[w,B]=(0,n.useState)(l>g?g-l:0),[b,x]=(0,n.useState)(l?l>g?g:l:0),R=(0,n.useRef)(e);(0,n.useEffect)(()=>{(0,h.isDeepStrictEqual)(R.current.map(e=>e.value),e.map(e=>e.value))||(B(0),x(0)),R.current=e},[e]),(0,o.useInput)((0,n.useCallback)((t,l)=>{if("k"===t||l.upArrow){let t=(d?D:e.length)-1,l=0===b,n=l?w+1:w,o=l?d?b:t:b-1;B(n),x(o);let i=d?p(e,n).slice(0,D):e;"function"==typeof a&&a(i[o])}if("j"===t||l.downArrow){let t=b===(d?D:e.length)-1,l=t?w-1:w,n=t?d?b:0:b+1;B(l),x(n);let o=d?p(e,l).slice(0,D):e;"function"==typeof a&&a(o[n])}if(/^[1-9]$/.test(t)){let l=Number.parseInt(t,10)-1,n=d?p(e,w).slice(0,D):e;if(l>=0&&l<n.length){let e=n[l];e&&f?.(e)}}if(l.return){let t=d?p(e,w).slice(0,D):e;"function"==typeof f&&f(t[b])}},[d,D,w,b,e,f,a]),{isActive:t});let U=d?p(e,w).slice(0,D):e;return n.default.createElement(o.Box,{flexDirection:"column"},U.map((e,t)=>{let l=t===b;return n.default.createElement(o.Box,{key:e.key??e.value},n.default.createElement(i,{isSelected:l}),n.default.createElement(r,{...e,isSelected:l}))}))}},47882(e,t,l){l.d(t,{A:()=>r});var n=l(51649),o=l(8498),i=l(47661);let r=function({type:e="dots"}){let[t,l]=(0,n.useState)(0),r=i[e];return(0,n.useEffect)(()=>{let e=setInterval(()=>{l(e=>e===r.frames.length-1?0:e+1)},r.interval);return()=>{clearInterval(e)}},[r]),n.default.createElement(o.Text,null,r.frames[t])}},29253(e,t,l){l.d(t,{A:()=>r});var n=l(51649),o=l(8498),i=l(73284);let r=function({value:e,placeholder:t="",focus:l=!0,mask:r,highlightPastedText:u=!1,showCursor:f=!0,onChange:a,onSubmit:d}){let[s,c]=(0,n.useState)({cursorOffset:(e||"").length,cursorWidth:0}),{cursorOffset:h,cursorWidth:p}=s;(0,n.useEffect)(()=>{c(t=>{if(!l||!f)return t;let n=e||"";return t.cursorOffset>n.length-1?{cursorOffset:n.length,cursorWidth:0}:t})},[e,l,f]);let D=u?p:0,g=r?r.repeat(e.length):e,w=g,B=t?i.default.grey(t):void 0;if(f&&l){B=t.length>0?i.default.inverse(t[0])+i.default.grey(t.slice(1)):i.default.inverse(" "),w=g.length>0?"":i.default.inverse(" ");let e=0;for(let t of g)w+=e>=h-D&&e<=h?i.default.inverse(t):t,e++;g.length>0&&h===g.length&&(w+=i.default.inverse(" "))}return(0,o.useInput)((t,l)=>{if(l.upArrow||l.downArrow||l.ctrl&&"c"===t||l.tab||l.shift&&l.tab)return;if(l.return){d&&d(e);return}let n=h,o=e,i=0;l.leftArrow?f&&n--:l.rightArrow?f&&n++:l.backspace||l.delete?h>0&&(o=e.slice(0,h-1)+e.slice(h,e.length),n--):(o=e.slice(0,h)+t+e.slice(h,e.length),n+=t.length,t.length>1&&(i=t.length)),h<0&&(n=0),h>e.length&&(n=e.length),c({cursorOffset:n,cursorWidth:i}),o!==e&&a(o)},{isActive:l}),n.default.createElement(o.Text,null,t?g.length>0?w:B:w)}}};
|