efficient-shell 7.45.0 → 7.46.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 +65 -0
- package/dist/{Browser-7M22OFSW.js → Browser-VNDS2FSD.js} +14 -14
- package/dist/Calculator-YGJ7I5VT.js +29 -0
- package/dist/ConfirmDialog-OJLZG4QL.js +1 -0
- package/dist/{CurrencyConverter-4QTVWEFM.js → CurrencyConverter-PH75TBDL.js} +6 -6
- package/dist/{Documents-LELK7IBM.js → Documents-KSO66MP3.js} +22 -22
- package/dist/Files-TGXFG2JF.js +87 -0
- package/dist/{Notepad-CLHKYQ34.js → Notepad-OUMZHB2S.js} +14 -14
- package/dist/PdfViewer-D4GRPG4G.js +1 -0
- package/dist/{PomodoroTimer-L45QS5OR.js → PomodoroTimer-BUKDNFPJ.js} +24 -24
- package/dist/{Preview-47BCBIP4.js → Preview-SGYKP5VY.js} +66 -66
- package/dist/Sidebar-A3UG662D.js +44 -0
- package/dist/{Spreadsheet-6NX5WA4J.js → Spreadsheet-OVBIGF7S.js} +12 -12
- package/dist/{Stock-ZZ6AM43M.js → Stock-FB5VIBVY.js} +3 -3
- package/dist/{Weather-K3BZD2NX.js → Weather-2MOP5LTK.js} +17 -17
- package/dist/{WorldClock-5STYQA56.js → WorldClock-KMMKBE4B.js} +6 -6
- package/dist/ai/index.d.ts +271 -0
- package/dist/ai/index.js +37 -0
- package/dist/ai.css +2 -0
- package/dist/apps/index.js +1 -1
- package/dist/bin/ui-check.js +1 -1
- package/dist/brand.css +1 -1
- package/dist/{chunk-JJBFXVOY.js → chunk-3RKM5ZGV.js} +2 -2
- package/dist/{chunk-YRLOXHKG.js → chunk-3ZZ2UPNR.js} +1 -1
- package/dist/{chunk-DENNF2LM.js → chunk-4FQTMGCA.js} +2 -2
- package/dist/{chunk-M2AM6DAA.js → chunk-4QW4I2XQ.js} +1 -1
- package/dist/{chunk-GM2ASLIK.js → chunk-4TOFAEAW.js} +29 -29
- package/dist/{chunk-G4UIEBPD.js → chunk-BFJRKFOH.js} +13 -13
- package/dist/{chunk-HPUHB47C.js → chunk-BMYURA2N.js} +1 -1
- package/dist/chunk-CLYMUTNF.js +27 -0
- package/dist/{chunk-PR7MCFEU.js → chunk-EZTEOTUD.js} +95 -95
- package/dist/{chunk-FQIZMZDX.js → chunk-FBXOKW33.js} +3 -3
- package/dist/{chunk-K6YIBHZN.js → chunk-FGPEAC7B.js} +16 -16
- package/dist/{chunk-XYG3CVL5.js → chunk-FY3H52BM.js} +1 -1
- package/dist/{chunk-ABKFLSHY.js → chunk-G32MW4IF.js} +1 -1
- package/dist/{chunk-UNLQRUWP.js → chunk-GFWRYNPX.js} +18 -18
- package/dist/{chunk-LK7BWXYY.js → chunk-JFZLYYAN.js} +1 -1
- package/dist/{chunk-JXMYF3JR.js → chunk-JGWOY2KV.js} +9 -9
- package/dist/chunk-KRAJDKZC.js +1 -0
- package/dist/{chunk-UNA3BQJI.js → chunk-MMLU5ZHI.js} +9 -9
- package/dist/{chunk-XDR3Y3WU.js → chunk-RNPURBKT.js} +5 -5
- package/dist/chunk-RWNNFCSA.js +1 -0
- package/dist/chunk-UBXRSOQ6.js +47 -0
- package/dist/{chunk-CWCKDF37.js → chunk-VJ6KJYRS.js} +3 -3
- package/dist/{chunk-LTEM56OL.js → chunk-WSRZRWN7.js} +1 -1
- package/dist/chunk-XGOXX466.js +1020 -0
- package/dist/{chunk-3G5TA3IF.js → chunk-YT4B3NSV.js} +4 -3
- package/dist/{chunk-HQ74L5MM.js → chunk-YWJD6RUT.js} +1 -1
- package/dist/{chunk-X6NYTLYX.js → chunk-ZELMENOO.js} +2 -2
- package/dist/icons/index.js +1 -1
- package/dist/{index-BWDtKUcA.d.ts → index-BI54lOAz.d.ts} +30 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +682 -682
- package/dist/map/index.js +8 -8
- package/dist/markdown/index.js +1 -1
- package/dist/page-tabs/index.js +5 -5
- package/dist/pdf/index.js +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.js +1 -1
- package/package.json +21 -4
- package/dist/Calculator-LKWOOCNC.js +0 -29
- package/dist/ConfirmDialog-ZT3XT66V.js +0 -1
- package/dist/Files-LAWZGFQQ.js +0 -87
- package/dist/PdfViewer-VJ743BW7.js +0 -1
- package/dist/Sidebar-AYYJL3IJ.js +0 -44
- package/dist/chunk-NGWXT4QX.js +0 -1
- package/dist/chunk-NZBFQTOB.js +0 -27
- package/dist/chunk-WGSCC6QU.js +0 -1050
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buttonClasses as t}from"./chunk-K7PQXJO7.js";import{
|
|
1
|
+
import{buttonClasses as t}from"./chunk-K7PQXJO7.js";import{currentShellStrings as e}from"./chunk-LVCRH3K6.js";import{SPINNER_RING as n}from"./chunk-2J6F4EE7.js";var o="http://www.w3.org/2000/svg",s={},r=/* @__PURE__ */new Map;function i(t,e){let n=document.getElementById(t);return n||(n=document.createElement("div"),n.id=t,n.className=e,document.body.appendChild(n)),n}var a={success:"M5 13l4 4L19 7",error:"M6 18L18 6M6 6l12 12",warning:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z",info:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",bell:"M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"};function c(t,e){const n=document.createElementNS(o,"svg");n.setAttribute("class",e),n.setAttribute("fill","none"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("stroke","currentColor"),n.setAttribute("stroke-width","2");const s=document.createElementNS(o,"path");return s.setAttribute("stroke-linecap","round"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("d",a[t]),n.appendChild(s),n}function l(t,e){const n=document.createElement("div");return n.className=t,void 0!==e&&(n.textContent=e),n}function d(e,o,a){const d={...s,...a},u=d.placement??"top",m=d.sticky??!1,p=`${u}|${e}|${o}`;if(d.dedupe){const t=r.get(p);if(t)return t.restart(),{dismiss:t.dismiss}}"loading"!==e&&!1!==d.sound&&import("./sounds-FO772MN2.js").then(t=>{"success"===e?t.playSuccess():"error"===e?t.playError():t.playNotification()}).catch(()=>{});const f="bottom"===u?i("toast-container-bottom","fixed bottom-4 left-1/2 -translate-x-1/2 z-(--z-toast) flex flex-col-reverse gap-2 items-center pointer-events-none"):i("toast-container","fixed top-4 left-1/2 -translate-x-1/2 z-(--z-toast) flex flex-col gap-2 items-center pointer-events-none"),h="bottom"===u?"translateY(10px)":"translateY(-10px)",y=l("pointer-events-auto cursor-pointer rosh-toast");if(y.style.opacity="0",y.style.transform=`${h} scale(0.95)`,y.setAttribute("role","error"===e?"alert":"status"),y.setAttribute("aria-atomic","true"),"loading"===e){const t=document.createElement("span");t.setAttribute("aria-hidden","true"),t.className=`${n} h-4 w-4 rosh-tone-loading`,y.appendChild(t)}else y.appendChild(c(e,`h-4 w-4 rosh-tone-${e}`));const v=document.createElement("span");if(v.textContent=o,y.appendChild(v),d.action){const{label:e,onClick:n}=d.action,o=document.createElement("button");o.type="button",o.className=t({variant:"link",size:"sm"}),o.textContent=e,o.addEventListener("click",t=>{t.stopPropagation(),g||(n(),x("action"))}),y.appendChild(o)}let b;f.appendChild(y),requestAnimationFrame(()=>{y.style.opacity="1",y.style.transform="translateY(0) scale(1)"});let g=!1;const x=t=>{g||(g=!0,b&&clearTimeout(b),r.delete(p),y.style.opacity="0",y.style.transform=`${h} scale(0.95)`,setTimeout(()=>y.remove(),300),d.onClose?.(t))},w=()=>x("dismissed"),C=d.duration??("info"===e?4500:3e3),E=()=>{b&&clearTimeout(b),m||(b=setTimeout(()=>x("timeout"),C))};return E(),y.addEventListener("mouseenter",()=>{b&&clearTimeout(b)}),y.addEventListener("mouseleave",()=>{g||E()}),y.addEventListener("click",w),r.set(p,{el:y,restart:E,dismiss:w}),{dismiss:w}}var u=8e3,m=/* @__PURE__ */new Map,p=!1;var f={success:(t,e)=>d("success",t,e),error:(t,e)=>d("error",t,e),warning:(t,e)=>d("warning",t,e),info:(t,e)=>d("info",t,e),notify:(t,n)=>function(t,n){!1!==(n?.sound??s.sound)&&import("./sounds-FO772MN2.js").then(t=>t.playNotification()).catch(()=>{});const o=i("notif-container","fixed top-4 right-4 z-(--z-toast) flex flex-col gap-3 items-end pointer-events-none"),r=l("pointer-events-auto cursor-pointer rosh-notif");r.style.opacity="0",r.style.transform="translateX(30px) scale(0.95)";const a=l("rosh-notif-badge");a.appendChild(c("bell","h-5 w-5"));const d=l("rosh-notif-body");d.append(l("rosh-notif-title",e().toast.notification),l("notif-msg rosh-notif-msg",t));const u=document.createElement("button");u.className="rosh-notif-close",u.textContent="×",r.append(a,d,u);const m=()=>{r.style.opacity="0",r.style.transform="translateX(30px) scale(0.95)",setTimeout(()=>r.remove(),300)};u.addEventListener("click",t=>{t.stopPropagation(),m()}),r.addEventListener("click",m),o.appendChild(r),requestAnimationFrame(()=>{r.style.opacity="1",r.style.transform="translateX(0) scale(1)"}),setTimeout(m,n?.duration??1e4)}(t,n),promise:(t,e,n)=>{const o=d("loading",e.loading,{...n,sticky:!0});return t.then(t=>{o.dismiss(),d("success","function"==typeof e.success?e.success(t):e.success,n)},t=>{o.dismiss(),d("error","function"==typeof e.error?e.error(t):e.error,n)}),t},configure:t=>{s={...t}},undoable:function(t,n){p||"undefined"==typeof window||(p=!0,window.addEventListener("pagehide",()=>{const t=[...m.values()];m.clear();for(const e of t)e.run({keepalive:!0})}));const o=/* @__PURE__ */Symbol("undoable");let s=!1,r=null;const i=async t=>{if(!s){s=!0,m.delete(o);try{await(t?n.commit(t):n.commit())}catch(t){n.onFail?.(t)}}},a=()=>!s&&(s=!0,m.delete(o),n.undo(),!0);return m.set(o,{run:i}),r=d("success",t,{sound:!1,placement:n.placement,duration:n.duration??8e3,action:{label:n.actionLabel??e().toast.undo,onClick:()=>{a()}},onClose:t=>{"action"!==t&&i()}}),{undo:()=>{const t=a();return t&&r?.dismiss(),t},commit:async()=>{if(s)return;const t=i();r?.dismiss(),await t}}}};export{u as UNDOABLE_MS,f as toast_default};
|