efficient-shell 8.30.0 → 8.32.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/README.md +12 -0
- package/dist/{Browser-5DL5WHEM.js → Browser-Y335UIBR.js} +11 -11
- package/dist/Calculator-4JDJKSA7.js +29 -0
- package/dist/{CurrencyConverter-XBC732QI.js → CurrencyConverter-S7LG5PMX.js} +6 -6
- package/dist/{Documents-7MFHD73Z.js → Documents-SP25WN7V.js} +2 -2
- package/dist/{Files-4DKRC3S2.js → Files-SEGSJMVA.js} +34 -34
- package/dist/{Notepad-BCK4LMG2.js → Notepad-ZJ7N4TZM.js} +10 -10
- package/dist/{PomodoroTimer-KH4PYCYQ.js → PomodoroTimer-ZR2VLO6G.js} +32 -32
- package/dist/{Preview-FP6XMPQR.js → Preview-AZQSMBW5.js} +18 -18
- package/dist/{Sidebar-3HM646LN.js → Sidebar-YB4OVUG5.js} +34 -34
- package/dist/{Spreadsheet-FSDGQCKT.js → Spreadsheet-UWD62JIM.js} +12 -12
- package/dist/{Stock-M4EEWA57.js → Stock-VNFYS73L.js} +7 -7
- package/dist/{Weather-WLAS7FBY.js → Weather-DS4YZ6SH.js} +17 -17
- package/dist/{WorldClock-WRD7DV2S.js → WorldClock-7S4TITSF.js} +6 -6
- package/dist/ai/index.d.ts +40 -2
- package/dist/ai/index.js +38 -37
- package/dist/apps/index.js +1 -1
- package/dist/bin/media-host-check.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/chunk-37JDUDCO.js +22 -0
- package/dist/chunk-3JJFBUK6.js +3 -0
- package/dist/{chunk-VEO34YZK.js → chunk-3Z6ASFGL.js} +1 -1
- package/dist/{chunk-3ZRZWOFZ.js → chunk-3ZVRB3CV.js} +1 -1
- package/dist/{chunk-Z37R2OCE.js → chunk-4AAGZQX7.js} +1 -1
- package/dist/{chunk-REOSJZED.js → chunk-74TPCYHX.js} +15 -15
- package/dist/{chunk-WSODT2L5.js → chunk-AX7KPMDV.js} +2 -2
- package/dist/{chunk-53ROHXAV.js → chunk-B55IXYDR.js} +2 -2
- package/dist/{chunk-I62MCTYI.js → chunk-DCUBOLIR.js} +3 -3
- package/dist/{chunk-3H74IBFS.js → chunk-F64DN4BV.js} +3 -3
- package/dist/{chunk-ETNNJUAX.js → chunk-GWIPZKZJ.js} +3 -3
- package/dist/{chunk-MXVJHVVI.js → chunk-JCMP5KMS.js} +5 -5
- package/dist/{chunk-Q4TGK2K6.js → chunk-JOIWDQRJ.js} +4 -4
- package/dist/{chunk-E6ZXYTTQ.js → chunk-KNVE7CMS.js} +1 -1
- package/dist/chunk-L2OSJ2YC.js +1 -0
- package/dist/{chunk-WPTG7ZC5.js → chunk-L3NYH4QV.js} +32 -32
- package/dist/{chunk-GECH6THP.js → chunk-LLLAIPFX.js} +1 -1
- package/dist/{chunk-4SQNLU2Q.js → chunk-MTXTJLFK.js} +1 -1
- package/dist/{chunk-ZZNOQQWE.js → chunk-NFR4QZL2.js} +4 -4
- package/dist/chunk-NT26CWMZ.js +5 -0
- package/dist/{chunk-O6JX6RDX.js → chunk-PJCVNFWM.js} +7 -7
- package/dist/{chunk-6YH7JKRE.js → chunk-QFA5COE6.js} +2 -2
- package/dist/{chunk-2OLSY4GE.js → chunk-QPX35URZ.js} +11 -11
- package/dist/{chunk-VP3CMJTT.js → chunk-UX6HNRFV.js} +7 -7
- package/dist/chunk-W7S56JZ7.js +7 -0
- package/dist/{chunk-OVVXSAGE.js → chunk-X7XJBK2E.js} +4 -4
- package/dist/{chunk-6CNFVUT6.js → chunk-XC55NMXR.js} +1 -1
- package/dist/{chunk-3IYMTPGR.js → chunk-YGZMD6TZ.js} +12 -12
- package/dist/{chunk-M2AIC7IK.js → chunk-ZEKM6HAA.js} +2 -2
- package/dist/data/ListLoadError.js +1 -1
- package/dist/format/index.js +1 -1
- package/dist/forms/BorderInput.js +1 -1
- package/dist/forms/BrandAssetEditor.js +1 -1
- package/dist/forms/ColorPicker.js +1 -1
- package/dist/forms/ComposerAttachments.js +1 -1
- package/dist/forms/CornersInput.js +1 -1
- package/dist/forms/DisplayChips.js +1 -1
- package/dist/forms/IconPicker.js +1 -1
- package/dist/forms/InputNumber.js +1 -1
- package/dist/forms/LinkPicker.js +1 -1
- package/dist/forms/MediaLibrary.js +1 -1
- package/dist/forms/MediaUploadField.js +1 -1
- package/dist/forms/MediaUsedInList.js +1 -1
- package/dist/forms/PositionInput.js +1 -1
- package/dist/forms/SidesInput.js +1 -1
- package/dist/forms/Slider.js +1 -1
- package/dist/forms/Snippet.js +1 -1
- package/dist/forms/SplitButton.js +1 -1
- package/dist/forms/TextToolbar.js +1 -1
- package/dist/forms/WidthsBar.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.js +124 -124
- package/dist/map/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/shell/AppUpdateBanner.js +1 -1
- package/dist/shell/ContextMenu.js +1 -1
- package/dist/shell/DropdownMenu.js +1 -1
- package/dist/shell/HelpCenter.js +1 -1
- package/dist/shell/ImageLightbox.js +1 -1
- package/dist/shell/LanguageSelect.js +1 -1
- package/dist/shell/Markdown.d.ts +9 -2
- package/dist/shell/Markdown.js +1 -1
- package/dist/shell/PopupMenu.js +1 -1
- package/dist/shell/SearchableSelect.js +1 -1
- package/dist/shell/SettingReset.js +1 -1
- package/dist/shell/SettingRow.js +1 -1
- package/dist/shell/TopNav.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/templates/ChatTemplate.js +1 -1
- package/dist/templates/CheckoutTemplate.js +1 -1
- package/dist/templates/DataTablePage.js +1 -1
- package/dist/templates/EmailTemplate.js +1 -1
- package/dist/templates/FormLayoutPage.js +1 -1
- package/dist/ui/index.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/Calculator-WW7WTG43.js +0 -29
- package/dist/chunk-7FI6NVC7.js +0 -3
- package/dist/chunk-DPDA3AJL.js +0 -1
- package/dist/chunk-EMXR74QM.js +0 -7
- package/dist/chunk-U6BEF6GQ.js +0 -5
- package/dist/chunk-V3UIAX5G.js +0 -21
package/dist/chunk-U6BEF6GQ.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{InputNumber_default as e}from"./chunk-4SQNLU2Q.js";import{useSettingAuto as t,useInSettingRow as i}from"./chunk-E4Z5OXBI.js";import{useShellStrings as n}from"./chunk-E6UCGCOC.js";import{createContext as r,useState as l,useMemo as a,useId as o,useRef as d,useContext as s,useEffect as u,useLayoutEffect as c}from"react";import{jsx as m,jsxs as f}from"react/jsx-runtime";var p=(e,t,i)=>Math.min(i,Math.max(t,e));function h(e){const t=String(e),i=/e-(\d+)$/.exec(t);return i?Number(i[1]):t.split(".")[1]?.length??0}var v=8,x=40;function b(e){return Math.max(1,...e.map(e=>(e??"").length))}var w="undefined"==typeof window?u:c;function y(e,t,i,n){return Number(p(e,t,i).toFixed(n))}var g=r(null);function S({children:e}){const[t,i]=l({}),n=a(()=>(e,t)=>i(i=>{if(null===t){if(!(e in i))return i;const t={...i};return delete t[e],t}return i[e]===t?i:{...i,[e]:t}}),[]),r=a(()=>{const e=Object.values(t);return{set:n,width:e.length?`max(${e.join(", ")})`:null}},[t,n]);/* @__PURE__ */
|
|
2
|
-
return m(g.Provider,{value:r,children:e})}function z({value:r,onChange:a,min:c,max:S,step:z=1,shiftStep:F,precision:$,inputMin:k,inputMax:N,suffix:C,showInput:L=!0,emptyLabel:j,placeholderValue:E,stepFrom:K,label:M,"aria-labelledby":A,valueText:D,id:O,disabled:R,size:U="md",className:B="",auto:I}){const Q=n(),V=o(),W=t(),q=I??W,G=o(),P=O??V,T=$??h(z),X=k??c,Z=N??S,H=void 0!==j||void 0!==E,J=K??E,Y=p(r??E??c,c,S),_=d(null),[ee,te]=l(null),ie=Boolean(C);w(()=>{const e=()=>{const e=_.current?.querySelector("input");if(!e)return;const t=getComputedStyle(e),i=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"].reduce((e,i)=>e+(parseFloat(t[i])||0),0);i<=0||te(e=>e&&e.frame===i&&e.fontSize===t.fontSize?e:{frame:i,fontSize:t.fontSize})};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[ie,L]);const ne=e=>D?D(e):"string"==typeof C?`${e.toFixed(T)} ${C}`:void 0,re=null==r?j??(null!=E?ne(E)??String(E):void 0):ne(r),le=`calc(${b([c.toFixed(T),S.toFixed(T),r?.toFixed(T),j,E?.toFixed(T)])}ch + ${(ee?.frame??10+(ie?x:v))+2}px)`,ae=s(g),oe=o(),de=ae?.set;w(()=>{de&&de(oe,L?le:null)},[de,oe,le,L]),u(()=>()=>de?.(oe,null),[de,oe]);const se=i();/* @__PURE__ */
|
|
3
|
-
return f("div",{"data-slider":"",className:`flex w-full min-w-0 items-center ${se?"flex-wrap gap-2":"gap-3"} ${B}`.trim(),children:[
|
|
4
|
-
/* @__PURE__ */m("input",{id:P,type:"range",min:c,max:S,step:z,value:Y,disabled:R,"aria-label":A?void 0:M,"aria-labelledby":A,"aria-valuetext":re,"aria-describedby":q?G:void 0,onKeyDown:e=>{const t="ArrowUp"===e.key||"ArrowRight"===e.key?1:"ArrowDown"===e.key||"ArrowLeft"===e.key?-1:0;if(!t||e.altKey||e.ctrlKey||e.metaKey)return;const i=e.shiftKey&&null!=F;if(!i&&!(null==r&&null!=J))return;e.preventDefault();a(y((r??J??Y)+t*(i?F??z:z),c,S,T))},onChange:e=>a(y(Number(e.target.value),c,S,T)),className:`min-w-24 flex-1 ${se?"basis-24":""} cursor-pointer accent-blue-600 disabled:cursor-not-allowed disabled:opacity-60 ${"sm"===U?"h-1":"h-1.5"}`}),L&&
|
|
5
|
-
/* @__PURE__ */m("div",{ref:_,"data-slider-box":"",className:se?"ml-auto shrink-0":"shrink-0 text-xs",style:se?void 0:{width:ae?.width??le,...ee?{fontSize:ee.fontSize}:{}},children:/* @__PURE__ */m(e,{value:r,onChange:e=>{null!=e?e<X||e>Z||a(e):H&&a(null)},min:X,max:Z,step:z,shiftStep:F,stepFrom:J,precision:T,snap:!0,allowEmpty:H,suffix:C,disabled:R,placeholder:j??(null!=E?E.toFixed(T):void 0),size:se?void 0:"sm",auto:q,"aria-label":M?Q.slider.value(M):void 0,"aria-labelledby":M?void 0:A})}),q&&/* @__PURE__ */m("span",{id:G,hidden:!0,children:Q.settingView.auto})]})}export{z as Slider,S as SliderGroup,y as settleSliderValue,b as sliderBoxChars,h as stepDecimals};
|
package/dist/chunk-V3UIAX5G.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{isSafeLinkHref as e}from"./chunk-PJPK2ADX.js";import{Button_default as t}from"./chunk-4IU5BSVE.js";import{Icon as r}from"./chunk-KIBL6M3T.js";import{useShellStrings as n}from"./chunk-E6UCGCOC.js";import{jsx as l,jsxs as s}from"react/jsx-runtime";var a=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,c=t=>e(t.trim());function o(e){const t=[];let r,n=0,o=0;for(a.lastIndex=0;null!==(r=a.exec(e));)r.index>n&&t.push(e.slice(n,r.index)),void 0!==r[1]?t.push(
|
|
2
|
-
/* @__PURE__ */s("span",{className:"text-gray-400",children:["[",r[1],"]"]},o++)):void 0!==r[3]?t.push(
|
|
3
|
-
/* @__PURE__ */l("a",{href:c(r[4])?r[4]:void 0,target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",children:r[3]},o++)):void 0!==r[5]?t.push(
|
|
4
|
-
/* @__PURE__ */l("strong",{className:"font-semibold text-gray-900",children:r[5]},o++)):void 0!==r[6]?t.push(
|
|
5
|
-
/* @__PURE__ */l("code",{className:"rounded bg-gray-200 px-1 py-0.5 font-mono text-[0.85em] text-gray-800",children:r[6]},o++)):void 0!==r[7]&&t.push(/* @__PURE__ */l("em",{children:r[7]},o++)),n=a.lastIndex;return n<e.length&&t.push(e.slice(n)),t}function i({alt:e}){const t=e.replace(/^screenshot:\s*/i,""),a=n().markdown;/* @__PURE__ */
|
|
6
|
-
return s("div",{className:"my-1 flex items-start gap-2 rounded-lg border border-dashed border-gray-300 bg-gray-50 px-3 py-3 text-gray-500",children:[
|
|
7
|
-
/* @__PURE__ */l(r,{name:"camera",look:"mini",className:"mt-0.5 h-4 w-4 shrink-0","aria-hidden":"true"}),
|
|
8
|
-
/* @__PURE__ */s("span",{className:"text-xs",children:[
|
|
9
|
-
/* @__PURE__ */l("span",{className:"font-medium text-gray-600",children:`${a.screenshot} — `}),t]})]})}function d(e,t){const r=[];for(const n of e){const e=t.exec(n);e?r.push(e[1]):r.length&&(r[r.length-1]+=" "+n.trim())}return r}var m=e=>e.replace(/^\s*\|/,"").replace(/\|\s*$/,"").split("|").map(e=>e.trim());function u(e){return e.length>=2&&e[0].includes("|")&&/^\s*\|?[\s:|-]*-[\s:|-]*\|?\s*$/.test(e[1])&&e[1].includes("-")}function h(e){return e.replace(a,(e,t,r,n,l,s,a,c)=>t??n??s??a??c??"").trim()}function p({header:e,rows:t}){const r=e=>/[",\r\n]/.test(e)?`"${e.replace(/"/g,'""')}"`:e;return[e,...t].map(e=>e.map(r).join(",")).join("\r\n")}function g(e,n,a){const c=m(e[0]),i=e.slice(2).map(m),d=/* @__PURE__ */l("div",{className:"my-1 overflow-x-auto rounded-lg border border-gray-200",children:/* @__PURE__ */s("table",{className:"w-full border-collapse text-sm",children:[
|
|
10
|
-
/* @__PURE__ */l("thead",{children:/* @__PURE__ */l("tr",{className:"bg-gray-50",children:c.map((e,t)=>/* @__PURE__ */l("th",{className:"border-b border-gray-200 px-3 py-2 text-left font-semibold text-gray-700",children:o(e)},t))})}),
|
|
11
|
-
/* @__PURE__ */l("tbody",{children:i.map((e,t)=>/* @__PURE__ */l("tr",{className:"even:bg-gray-50/50",children:e.map((e,t)=>/* @__PURE__ */l("td",{className:"border-t border-gray-100 px-3 h-8 align-top text-gray-700",children:o(e)},t))},t))})]})},n);return a?.length?/* @__PURE__ */s("div",{children:[d,
|
|
12
|
-
/* @__PURE__ */l("div",{className:"flex flex-wrap justify-end gap-1",children:a.map(e=>/* @__PURE__ */l(t,{size:"sm",variant:"secondary",leftIcon:e.icon?/* @__PURE__ */l(r,{name:e.icon,look:"mini",className:"h-4 w-4","aria-hidden":"true"}):void 0,onClick:()=>e.onSelect({header:c.map(h),rows:i.map(e=>e.map(h))}),children:e.label},e.label))})]},n):d}var f=/^( {0,3})(`{3,}|~{3,})[ \t]*(.*?)[ \t]*$/,x=/^[-*]\s+/,b=/^\d+\.\s+/,y=/^#{2,4}\s+/;function N(e){const t=e.split("\n"),r=[];let n=null;for(let e=0;e<t.length;e+=1){const l=t[e];let s=null;y.test(l)?s="heading":"table"!==n&&u(t.slice(e,e+2))?s="table":"bullet"!==n&&x.test(l)?s="bullet":"ordered"!==n&&b.test(l)&&("text"!==n||/^1\./.test(l))?s="ordered":"table"!==n||l.includes("|")?"heading"===n&&(s="text"):s="text",null!==s||null===n?(r.push([l]),n=s??"text"):r[r.length-1].push(l)}return r.map(e=>e.join("\n"))}function v(e){const t=e.replace(/\r\n/g,"\n").split("\n"),r=[];let n=[];const l=()=>{for(const e of n.join("\n").split(/\n{2,}/))for(const t of N(e.replace(/\s+$/,"")))""!==t.trim()&&r.push({text:t});n=[]};for(let e=0;e<t.length;e+=1){const s=f.exec(t[e]);if(!(null!==s&&!("`"===s[2][0]&&s[3].includes("`")))){n.push(t[e]);continue}l();const[,a,c,o]=s,i=[];let d=!1;for(e+=1;e<t.length;e+=1){const r=f.exec(t[e]);if(null!==r&&r[2][0]===c[0]&&r[2].length>=c.length&&""===r[3]){d=!0;break}i.push(a?t[e].replace(new RegExp(`^ {0,${a.length}}`),""):t[e])}r.push({fence:{lang:o.split(/[ \t]/)[0],code:i.join("\n"),closed:d}})}return l(),r}function k(e,t,r){if(r){let n=null;try{n=r(e)}catch{n=null}if(null!=n)/* @__PURE__ */return l("div",{children:n},t)}return function({lang:e,code:t},r){/* @__PURE__ */
|
|
13
|
-
return l("pre",{"data-language":e||void 0,className:"my-1 overflow-x-auto rounded-lg border border-gray-200 bg-gray-50 p-3 font-mono text-xs text-gray-800",children:/* @__PURE__ */l("code",{children:t})},r)}(e,t)}function $({children:e,className:t,renderFence:r,tableActions:n}){/* @__PURE__ */
|
|
14
|
-
return l("div",{className:`space-y-3 text-sm leading-relaxed text-gray-700 ${t??""}`.trim(),children:v(e??"").map((e,t)=>"fence"in e?k(e.fence,t,r):function(e,t,r){const n=e.split("\n"),s=n[0],a=/^(#{2,4})\s+(.*)$/.exec(s);if(a&&1===n.length){const e=a[1].length;/* @__PURE__ */
|
|
15
|
-
return l(`h${e}`,{className:2===e?"mt-2 text-sm font-semibold uppercase tracking-wide text-gray-500":3===e?"mt-1 text-base font-semibold text-gray-900":"mt-1 text-sm font-semibold text-gray-900",children:o(a[2])},t)}if(1===n.length&&/^---+$/.test(s))/* @__PURE__ */
|
|
16
|
-
return l("hr",{className:"border-gray-200"},t);if(u(n))return g(n,t,r);if(/^>\s?/.test(s)){const e=n.map(e=>e.replace(/^>\s?/,"")).join(" ");/* @__PURE__ */
|
|
17
|
-
return l("div",{className:"my-1 rounded-r-lg border-l-4 border-blue-300 bg-blue-50/60 px-3 py-2 text-gray-700",children:o(e)},t)}const c=/^!\[([^\]]*)\]\(([^)]+)\)$/.exec(s);if(c&&1===n.length)/* @__PURE__ */
|
|
18
|
-
return l(i,{alt:c[1]},t);if(/^[-*]\s+/.test(s)){const e=d(n,/^[-*]\s+(.*)$/);/* @__PURE__ */
|
|
19
|
-
return l("ul",{className:"list-disc space-y-1 pl-5 marker:text-gray-400",children:e.map((e,t)=>/* @__PURE__ */l("li",{children:o(e)},t))},t)}const m=/^(\d+)\.\s+/.exec(s);if(m){const e=d(n,/^\d+\.\s+(.*)$/);/* @__PURE__ */
|
|
20
|
-
return l("ol",{start:Number(m[1]),className:"list-decimal space-y-1 pl-5 marker:text-gray-400",children:e.map((e,t)=>/* @__PURE__ */l("li",{className:"pl-1",children:o(e)},t))},t)}/* @__PURE__ */
|
|
21
|
-
return l("p",{children:o(n.join(" "))},t)}(e.text,t,n))})}export{$ as Markdown,h as plainCell,p as tableToCsv};
|